Gallery with initialization

This commit is contained in:
Saurabh Bhatia committed 2014-05-01 15:06:48 +08:00
1 parent bdadc445b3
commit 3b7e9ac0b3
13 files changed
+130 -2

No files matched your search

+17
View File
@@ -1,4 +1,21 @@
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