29 lines
1.1 KiB
Ruby
29 lines
1.1 KiB
Ruby
module FileManager
|
|
class Engine < ::Rails::Engine
|
|
initializer "file_manager" do
|
|
Rails.application.config.to_prepare do
|
|
FileManagerSetting.get_models_uploaders
|
|
OrbitApp.registration "FileManager", :type => "ModuleApp" do
|
|
module_label "file_manager.file_manager"
|
|
base_url File.expand_path File.dirname(__FILE__)
|
|
# widget_methods []
|
|
# widget_settings [{"enable_custom_widget_data"=>true}]
|
|
authorizable
|
|
# frontend_enabled
|
|
side_bar do
|
|
head_label_i18n 'file_manager.file_manager', icon_class: "icon-folder-open"
|
|
available_for "managers"
|
|
active_for_controllers (['admin/file_managers'])
|
|
head_link_path "admin_file_managers_path"
|
|
|
|
context_link 'file_manager.file_manager',
|
|
:link_path=>"admin_file_managers_path" ,
|
|
:priority=>1,
|
|
:active_for_action=>{'admin/file_managers'=>'index'},
|
|
:available_for => 'managers'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end |