announcement-test/lib/announcement/engine.rb

17 lines
529 B
Ruby

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"]
side_bar do
head_label_i18n 'announcement.announcement', icon_class: "icons-megaphone"
active_for_controllers ({:private=>['announcements']})
head_link_path "admin_announcements_path"
end
end
end
end
end