module Announcement class Engine < ::Rails::Engine initializer "announcement" do OrbitApp.registration "Announcement", :type => "ModuleApp" do module_label "announcement.announcement" base_url File.expand_path File.dirname(__FILE__) widget_methods ["widget"] taggable "Bulletin" categorizable authorizable side_bar do head_label_i18n 'announcement.announcement', icon_class: "icons-megaphone" available_for [:admin,:manager,:sub_manager] active_for_controllers (['admin/announcements']) head_link_path "admin_announcements_path" context_link 'announcement.all_articles', :link_path=>"admin_announcements_path" , :priority=>1, :active_for_action=>{'admin/announcements'=>'index'}, :available_for => [:all] context_link 'new_', :link_path=>"new_admin_announcement_path" , :priority=>2, :active_for_action=>{'admin/announcements'=>'new'}, :available_for => [:sub_manager] context_link 'categories', :link_path=>"admin_module_app_categories_path" , :link_arg=>{:module_app_id=>get_module_app.id}, :priority=>3, :active_for_action=>{'admin/announcements'=>'categories'}, :active_for_category => 'Announcement', :available_for => [:manager] context_link 'tags', :link_path=>"admin_module_app_tags_path" , :link_arg=>{:module_app_id=>get_module_app.id}, :priority=>4, :active_for_action=>{'admin/announcements'=>'tags'}, :active_for_tag => 'Announcement', :available_for => [:manager] end end end end end