patch_file/lib/patchfile/engine.rb

32 lines
1.3 KiB
Ruby

require "yaml"
module Patchfile
class Engine < ::Rails::Engine
initializer "patchfile" do
OrbitApp.registration "Patchfile", :type => "ModuleApp" do
base_url File.expand_path File.dirname(__FILE__)
# taggable "patchfilefield"
# categorizable
# authorizable
side_bar do
# head_label_i18n 'patchfile.patchfile', icon_class: "icons-megaphone"
# available_for "users"
# active_for_controllers (['admin/patchfiles'])
# head_link_path "admin_patchfiles_path"
# context_link 'patchfile.patchfile',
# :link_path=>"admin_patchfiles_path" ,
# :priority=>1,
# :active_for_action=>{'admin/patchfiles'=>'index'},
# :available_for => 'users'
# context_link 'CKEDITOR',
# :link_path=>"admin_patchfiles_showckeditor_path" ,
# #:link_to=>"admin_patchfiles_path"+"/showckeditor" ,
# :priority=>2,
# :active_for_action=>{'admin/patchfiles'=>'showckeditor'},
# :available_for => 'users'
end
end
end
end
end