adbanner-test/lib/ad_banner/engine.rb

29 lines
970 B
Ruby
Raw Normal View History

2014-04-11 07:47:33 +00:00
module AdBanner
class Engine < ::Rails::Engine
2014-04-18 11:38:37 +00:00
initializer "ad_banner" do
OrbitApp.registration "AdBanner", :type => "ModuleApp" do
module_label "ad_banner.ad_banner"
base_url File.expand_path File.dirname(__FILE__)
2014-04-11 07:47:33 +00:00
widget_methods ["widget"]
2014-05-23 05:51:04 +00:00
widget_settings [{"override_category_with"=>"banner","multiselect"=>false,"display_field"=>"title"}]
2014-04-18 11:38:37 +00:00
taggable "Banner"
2014-04-20 12:23:18 +00:00
categorizable
2014-05-05 04:50:33 +00:00
authorizable
2014-04-18 11:38:37 +00:00
side_bar do
head_label_i18n 'ad_banner.ad_banner', icon_class: "icons-landscape"
2014-07-31 09:11:38 +00:00
available_for "users"
active_for_controllers (['admin/ad_banners','admin/ad_images'])
2014-04-18 11:38:37 +00:00
head_link_path "admin_ad_banners_path"
2014-04-15 10:32:45 +00:00
context_link 'ad_banner.all',
2014-04-18 11:38:37 +00:00
:link_path=>"admin_ad_banners_path" ,
2014-08-14 11:54:21 +00:00
:priority=>1,
2014-07-31 09:11:38 +00:00
:active_for_action=>{'admin/ad_banners'=>"index"},
:available_for => 'users'
2014-04-18 11:38:37 +00:00
end
end
end
2014-04-11 07:47:33 +00:00
end
end