announcement-test/lib/announcement/engine.rb

17 lines
529 B
Ruby
Raw Normal View History

2014-04-01 07:12:43 +00:00
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__)
2014-04-02 06:44:36 +00:00
widget_methods ["widget"]
side_bar do
2014-04-15 10:33:28 +00:00
head_label_i18n "announcement.announcement", icon_class: "icons-megaphone"
2014-04-10 03:52:59 +00:00
active_for_controllers ({:private=>['announcements']})
head_link_path "admin_announcements_path"
end
2014-04-01 07:12:43 +00:00
end
end
end
end