aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/refinery
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/refinery')
-rw-r--r--app/models/refinery/blog_category.rb2
-rw-r--r--app/models/refinery/blog_post.rb2
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