Skip to content

Commit

Permalink
fix for error: undefined local var max_csv_records
Browse files Browse the repository at this point in the history
  • Loading branch information
ajey authored Jan 6, 2017
1 parent 4c2ae1f commit b81104e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/active_admin/axlsx/resource_controller_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def index_with_xlsx(options={}, &block)

# patching per_page to use the CSV record max for pagination when the format is xlsx
def per_page_with_xlsx
max_csv_records = 1000
if request.format == Mime::Type.lookup_by_extension(:xlsx)
return max_csv_records
end
Expand Down

0 comments on commit b81104e

Please sign in to comment.