diff options
author | Philip Arndt <parndt@gmail.com> | 2010-10-13 13:29:15 +1300 |
---|---|---|
committer | Philip Arndt <parndt@gmail.com> | 2010-10-13 13:29:15 +1300 |
commit | 4a94a73eabbdfd3b09ae596506b18524f4816617 (patch) | |
tree | a6812d0d88127c5ce9abe633c7606b442755ed1c /app/controllers/blog/posts_controller.rb | |
parent | 52f741bbc4b96e1229246ca6f9b18862ed713090 (diff) | |
download | refinerycms-blog-4a94a73eabbdfd3b09ae596506b18524f4816617.tar.gz refinerycms-blog-4a94a73eabbdfd3b09ae596506b18524f4816617.tar.bz2 refinerycms-blog-4a94a73eabbdfd3b09ae596506b18524f4816617.zip |
prefix with blog_
Diffstat (limited to 'app/controllers/blog/posts_controller.rb')
-rw-r--r-- | app/controllers/blog/posts_controller.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/controllers/blog/posts_controller.rb b/app/controllers/blog/posts_controller.rb index cee3719..ee707ed 100644 --- a/app/controllers/blog/posts_controller.rb +++ b/app/controllers/blog/posts_controller.rb @@ -37,7 +37,10 @@ protected end def find_all_blog_posts - @blog_posts = BlogPost.live.paginate :page => params[:page], :per_page => RefinerySetting.find_or_set(:posts_per_page, 10) + @blog_posts = BlogPost.live.paginate({ + :page => params[:page], + :per_page => RefinerySetting.find_or_set(:blog_posts_per_page, 10) + }) end end |