lib/generators/rao/resources_controller/templates/initializer.rb in rao-resources_controller-0.0.20.pre vs lib/generators/rao/resources_controller/templates/initializer.rb in rao-resources_controller-0.0.21.pre
- old
+ new
@@ -2,6 +2,14 @@
# Set the base controller for resources controllers.
#
# default: config.resources_controller_base_class_name = '::ApplicationController'
#
config.resources_controller_base_class_name = '::ApplicationController'
+
+ # Set the pagination item count per page.
+ #
+ # Works for kaminari and will_paginate.
+ #
+ # default: config.pagination_per_page_default = 25
+ #
+ config.pagination_per_page_default = 25
end