aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-rw-r--r--app/models/refinery/blog_post.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/refinery/blog_post.rb b/app/models/refinery/blog_post.rb
index 12ce6f2..5eb2a6f 100644
--- a/app/models/refinery/blog_post.rb
+++ b/app/models/refinery/blog_post.rb
@@ -111,6 +111,9 @@ module Refinery
end
end
end
+
+ # how many items to show per page
+ paginates_per Refinery::Setting.find_or_set(:blog_posts_per_page, 10)
end
end