diff options
author | Harald Eilertsen <haraldei@andeuin.net> | 2014-02-15 13:52:01 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@andeuin.net> | 2014-02-15 13:52:01 +0100 |
commit | 136a680e868621f28b7f4e2e5c165c9c668b1f9d (patch) | |
tree | 322352aa0d065c84673c8f9aa238573489f3cc1d /app | |
parent | 623df26f67e3c926502ac6c916103f762054d063 (diff) | |
download | hmnoweb-136a680e868621f28b7f4e2e5c165c9c668b1f9d.tar.gz hmnoweb-136a680e868621f28b7f4e2e5c165c9c668b1f9d.tar.bz2 hmnoweb-136a680e868621f28b7f4e2e5c165c9c668b1f9d.zip |
Show only posts not listed on the sides in the front page center panel.v1.0.0
Diffstat (limited to 'app')
-rw-r--r-- | app/decorators/controllers/refinery/pages_controller_decorator.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/decorators/controllers/refinery/pages_controller_decorator.rb b/app/decorators/controllers/refinery/pages_controller_decorator.rb index 83b2433..d93ae9d 100644 --- a/app/decorators/controllers/refinery/pages_controller_decorator.rb +++ b/app/decorators/controllers/refinery/pages_controller_decorator.rb @@ -22,10 +22,10 @@ ApplicationController.class_eval do end def populate_home_page - # - # These methods are included from Refinery::Blog::ControllerHelper - # Makes sure everyting is in place for the home page view template. - # - find_all_blog_posts + @posts = Refinery::Blog::Post + .live + .includes(:comments, :categories) + .where(:refinery_blog_categories => { :sidebar_position => 0 }) + .page(params[:page]) end end |