pagecontent/lib/page_content/engine.rb

20 lines
608 B
Ruby
Raw Normal View History

2014-05-05 07:05:59 +00:00
module PageContent
class Engine < ::Rails::Engine
initializer "page_content" do
OrbitApp.registration "PageContent", :type => "ModuleApp" do
module_label "page_content.page_content"
base_url File.expand_path File.dirname(__FILE__)
2014-05-14 10:47:17 +00:00
frontend_enabled
2014-05-05 07:05:59 +00:00
authorizable
side_bar do
head_label_i18n 'page_content.page', icon_class: "icons-newspaper"
available_for [:admin,:manager,:sub_manager]
2014-05-06 09:20:15 +00:00
active_for_controllers (['admin/page_contents'])
2014-05-05 07:05:59 +00:00
head_link_path "admin_page_contents_path"
end
end
end
end
end