22 lines
580 B
Ruby
22 lines
580 B
Ruby
module Gallery
|
|
class Engine < ::Rails::Engine
|
|
initializer "gallery" do
|
|
OrbitApp.registration "Gallery", :type => "ModuleApp" do
|
|
module_label "gallery.gallery"
|
|
base_url File.expand_path File.dirname(__FILE__)
|
|
|
|
categorizable
|
|
authorizable
|
|
|
|
side_bar do
|
|
head_label_i18n 'gallery.gallery', icon_class: "icons-pictures"
|
|
available_for [:admin,:manager,:sub_manager]
|
|
active_for_controllers ({:private=>['gallery']})
|
|
head_link_path "admin_galleries_path"
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|