lib/active_admin/resource/pagination.rb in activeadmin-1.0.0.pre1 vs lib/active_admin/resource/pagination.rb in activeadmin-1.0.0.pre2
- old
+ new
@@ -4,16 +4,20 @@
module Pagination
# The default number of records to display per page
attr_accessor :per_page
+ # The default number of records to display per page
+ attr_accessor :max_per_page
+
# Enable / disable pagination (defaults to true)
attr_accessor :paginate
def initialize(*args)
super
@paginate = true
@per_page = namespace.default_per_page
+ @max_per_page = namespace.max_per_page
end
end
end
end