module VideoPrograms class Engine < ::Rails::Engine initializer "video_programs" do Rails.application.config.to_prepare do OrbitApp.registration "video_programs", :type => "ModuleApp" do module_label "module_name.video_program" base_url File.expand_path File.dirname(__FILE__) taggable "VideoProgram" categorizable authorizable frontend_enabled data_count 1..30 side_bar do head_label_i18n 'module_name.video_program', icon_class: "icons-megaphone" available_for "users" active_for_controllers (['admin/video_programs']) head_link_path "admin_video_programs_path" context_link 'module_name.video_program', :link_path=>"admin_video_programs_path" , :priority=>1, :active_for_action=>{'admin/video_programs'=>'index'}, :available_for => 'users' context_link 'new_', :link_path=>"new_admin_video_program_path" , :priority=>2, :active_for_action=>{'admin/video_programs'=>'new'}, :available_for => 'sub_managers' context_link 'categories', :link_path=>"admin_module_app_categories_path" , :link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'video_program').id}", :priority=>3, :active_for_action=>{'admin/video_programs'=>'categories'}, :active_for_category => 'VideoPrograms', :available_for => 'managers' context_link 'tags', :link_path=>"admin_module_app_tags_path" , :link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'video_program').id}", :priority=>4, :active_for_action=>{'admin/video_programs'=>'tags'}, :active_for_tag => 'VideoPrograms', :available_for => 'managers' end end end end end end