ActiveAdmin - Disable JSON/XML export
Monkey Patch:
module ActiveAdmin
module Views
class PaginatedCollection
def build_pagination_with_formats(options)
div :id => "index_footer" do
build_pagination
div(page_entries_info(options).html_safe, :class => "pagination_information")
build_download_format_links([:csv]) unless @download_links == false
end
end
end
end
end
Change line:
build_download_format_links([:csv])
To Suite export formats required
Written by David Collom
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#