This commit is contained in:
albert
2013-01-05 22:59:36 -05:00
parent b43c096116
commit ef64950afd

View File

@@ -1,5 +1,5 @@
module AdvertisementsHelper module AdvertisementsHelper
def render_advertisement(ad_type, post_set) def render_advertisement(ad_type)
if Danbooru.config.can_user_see_ads?(CurrentUser.user) if Danbooru.config.can_user_see_ads?(CurrentUser.user)
@advertisement = Advertisement.find(:first, :conditions => ["ad_type = ? AND status = 'active'", ad_type], :order => "random()") @advertisement = Advertisement.find(:first, :conditions => ["ad_type = ? AND status = 'active'", ad_type], :order => "random()")
content_tag( content_tag(