diff options
Diffstat (limited to 'app/decorators')
-rw-r--r-- | app/decorators/controllers/refinery/pages_controller_decorator.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/decorators/controllers/refinery/pages_controller_decorator.rb b/app/decorators/controllers/refinery/pages_controller_decorator.rb index 6754fe4..3a6b0fd 100644 --- a/app/decorators/controllers/refinery/pages_controller_decorator.rb +++ b/app/decorators/controllers/refinery/pages_controller_decorator.rb @@ -18,6 +18,7 @@ ApplicationController.class_eval do before_filter :populate_sidebars before_filter :populate_home_page, :only => [:home] + before_filter :find_banners protected @@ -62,4 +63,8 @@ ApplicationController.class_eval do @tags = Refinery::Blog::Post.tag_counts_on(:tags, opts) end end + + def find_banners + @banners = Refinery::Banners::Banner.published + end end |