diff options
Diffstat (limited to 'app/models/refinery')
-rw-r--r-- | app/models/refinery/blog_category.rb | 2 | ||||
-rw-r--r-- | app/models/refinery/blog_post.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/refinery/blog_category.rb b/app/models/refinery/blog_category.rb index c2c8c4c..3f10d92 100644 --- a/app/models/refinery/blog_category.rb +++ b/app/models/refinery/blog_category.rb @@ -18,7 +18,7 @@ module Refinery end # how many items to show per page - paginates_per Refinery::Setting.find_or_set(:blog_posts_per_page, 10) + self.per_page = Refinery::Setting.find_or_set(:blog_posts_per_page, 10) end end diff --git a/app/models/refinery/blog_post.rb b/app/models/refinery/blog_post.rb index f4bccf1..4da083c 100644 --- a/app/models/refinery/blog_post.rb +++ b/app/models/refinery/blog_post.rb @@ -96,7 +96,7 @@ module Refinery # how many items to show per page def per_page - paginates_per Refinery::Setting.find_or_set(:blog_posts_per_page, 10) + Refinery::Setting.find_or_set(:blog_posts_per_page, 10) end end |