主动管理的轨道 - CSV极限 [英] Active Admin in rails - csv limit

查看:180
本文介绍了主动管理的轨道 - CSV极限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在下载使用主动管理0.3.4认为有大约12,000记录模式的CSV。但该CSV被限制为仅万行数据。有没有办法不限制在CSV下载的行数?

I was downloading a csv of a model using active admin 0.3.4 that had around 12,000 records. But the csv was limited to only 10,000 rows of data. Is there a way to not limit the number of rows in the csv download?

推荐答案

有lib目录中名为max_csv_records函数/ active_admin / resource_controller / collection.rb .. GitHub的源$ C ​​$ C 更改默认不断给你多少以往任何时候都需要

There was a function called max_csv_records in lib/active_admin/resource_controller/collection.rb of the github source code.. Change the default constant to how much ever you need

这篇关于主动管理的轨道 - CSV极限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆