Permalink
Browse files

Set per_page globally.

  • Loading branch information...
1 parent 6828e71 commit 9cb03c458cb36833cdb0d7f3cb756b3e92440031 @ugisozols ugisozols committed Aug 25, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 core/lib/refinerycms-core.rb
@@ -76,6 +76,11 @@ class Engine < ::Rails::Engine
end
end
+ # set per_page globally
+ config.to_prepare do
+ WillPaginate.per_page = 20
+ end
+
# Register the plugin
config.after_initialize do
::Refinery::Plugin.register do |plugin|

0 comments on commit 9cb03c4

Please sign in to comment.