From 9d549ae12ab5ca66cf57d8fea96b32d77c6fb0a5 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 24 Feb 2015 15:10:15 +0530 Subject: [PATCH] fix for banner and image default text.. --- app/controllers/ad_banners_controller.rb | 1 + app/controllers/admin/ad_banners_controller.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/ad_banners_controller.rb b/app/controllers/ad_banners_controller.rb index 2e06d96..3daa808 100644 --- a/app/controllers/ad_banners_controller.rb +++ b/app/controllers/ad_banners_controller.rb @@ -14,6 +14,7 @@ class AdBannersController < ApplicationController { "image_link" => image_link, + "image_alt" => "ad banner image", "title" => b.title, "class" => klass, "height" => adbanner.height, diff --git a/app/controllers/admin/ad_banners_controller.rb b/app/controllers/admin/ad_banners_controller.rb index 7504d27..d00343f 100644 --- a/app/controllers/admin/ad_banners_controller.rb +++ b/app/controllers/admin/ad_banners_controller.rb @@ -3,7 +3,7 @@ class Admin::AdBannersController < OrbitAdminController def index @banners = Banner.all - @categories = @module_app.categories.collect{|c|[c.title, c.id]} + @categories = @module_app.categories.enabled.collect{|c|[c.title, c.id]} end def show