aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2014-02-16 19:29:19 +0100
committerHarald Eilertsen <haraldei@anduin.net>2014-02-16 19:29:19 +0100
commit92f488d04f12324613f17f3cadde3bc131d3f457 (patch)
tree1c3ca2a21740a6cd8145bbd42c11b082e59cc5ad
parentd54d4ca358206971540241bb617dc6dacb097136 (diff)
downloadhmnoweb-92f488d04f12324613f17f3cadde3bc131d3f457.tar.gz
hmnoweb-92f488d04f12324613f17f3cadde3bc131d3f457.tar.bz2
hmnoweb-92f488d04f12324613f17f3cadde3bc131d3f457.zip
Display published ads instead of active.
This means that ads will only be shown between their start-publishin date, and their end-publishing date. They will also only be shown on the pages where they are enabled. This allows different ads on different pages, or ads only on some pages, while others completely without ads.
-rw-r--r--app/decorators/controllers/refinery/pages_controller_decorator.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/app/decorators/controllers/refinery/pages_controller_decorator.rb b/app/decorators/controllers/refinery/pages_controller_decorator.rb
index 2e972e9..d93ae9d 100644
--- a/app/decorators/controllers/refinery/pages_controller_decorator.rb
+++ b/app/decorators/controllers/refinery/pages_controller_decorator.rb
@@ -19,9 +19,6 @@ ApplicationController.class_eval do
#
find_all_blog_categories
find_tags
-
- # Load active banners
- @banners = Refinery::Banners::Banner.active
end
def populate_home_page