2014-04-01 07:12:43 +00:00
|
|
|
module Announcement
|
|
|
|
class Engine < ::Rails::Engine
|
2014-04-18 11:37:31 +00:00
|
|
|
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 "Bulletin"
|
2014-04-07 09:32:44 +00:00
|
|
|
|
2014-04-18 11:37:31 +00:00
|
|
|
side_bar do
|
|
|
|
head_label_i18n 'announcement.announcement', icon_class: "icons-megaphone"
|
2014-04-10 03:52:59 +00:00
|
|
|
active_for_controllers ({:private=>['announcements']})
|
2014-04-18 11:37:31 +00:00
|
|
|
head_link_path "admin_announcements_path"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2014-04-01 07:12:43 +00:00
|
|
|
end
|
|
|
|
end
|