diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2019-05-25 15:38:06 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2019-05-25 15:38:06 +0200 |
commit | 7e3360b1c2282c8d9f1f802560fd19e3072bc305 (patch) | |
tree | f0f7e447e87e5aaa19d062594c1878ea7a8e005f /app | |
parent | cf87417bac7efbc93667382520758b4c5e44638a (diff) | |
download | hmnoweb-7e3360b1c2282c8d9f1f802560fd19e3072bc305.tar.gz hmnoweb-7e3360b1c2282c8d9f1f802560fd19e3072bc305.tar.bz2 hmnoweb-7e3360b1c2282c8d9f1f802560fd19e3072bc305.zip |
Fetch published banners for pages.
Diffstat (limited to 'app')
-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 |