weather/lib/ruling_weather/engine.rb

27 lines
1.1 KiB
Ruby

module RulingWeather
class Engine < ::Rails::Engine
initializer "ruling_weather" do
OrbitApp.registration "RulingWeather", :type => "ModuleApp" do
module_label "ruling_weather.ruling_weather"
base_url File.expand_path File.dirname(__FILE__)
authorizable
widget_methods ["widget"]
widget_settings [{"override_category_with"=>"ruling_weather_setting","multiselect"=>false,"display_field"=>"location"}]
side_bar do
head_label_i18n 'ruling_weather.ruling_weather', icon_class: "fa fa-sun-o"
available_for "users"
active_for_controllers (['admin/ruling_weathers'])
head_link_path "admin_ruling_weathers_path"
context_link 'ruling_weather.setting_management',
:link_path=>"admin_ruling_weathers_path" ,
:priority=>1,
:active_for_action=>{'admin/ruling_weathers'=>'index'},
:available_for => 'managers'
end
end
end
end
end