I downloaded csv models using the active admin 0.3.4, which had about 12,000 entries. But csv was limited to only 10,000 rows of data. Is there a way to not limit the number of lines in a csv download?
In lib / active_admin / resource_controller / collection.rb, the max_csv_records function of the github source code appeared. Change the default constant as you need
hardcoded
I put this in my config / intializers / active_admin.rb
# Monkey patch to increase the number of records # exported in csv download -default is 10k module ActiveAdmin class ResourceController module DataAccess # in active admin 0.6 def max_csv_records 30_000 end # needed for current active admin master def max_per_page 30_000 end end end end
Source: https://habr.com/ru/post/1397349/More articles:How to add a shortcut to the form designer (and not to the twig)? - formsMonitoring Key Values ββand NSTimer - iosonmousedown - left or right? - javascriptSinon.js fakeServer does not start callback with response method - javascriptGrapheme Joiner not working in Cocoa, iOS? - iosMakefile with different compiler flags for source files - c ++How does code return for functions not yet available in XSLT? - xsltHow to force SQL to update my modified timestamp record correctly? - sqlActionScript Voice Recognition Library - actionscriptIncorrect Configured: Error importing middleware pp.middleware: "No module named pp.middleware" - pythonAll Articles