Sha256: 0b314c74fa3515eeeb6bd53759bd94ede93dab185e94ebb4204ba4d109df6f02
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
require File.join(File.dirname(__FILE__), '../middleware/flash_session_cookie') module Alchemy class Engine < Rails::Engine isolate_namespace Alchemy engine_name 'alchemy' config.mount_at = '/' # Enabling assets precompiling initializer 'alchemy.assets' do |app| app.config.assets.precompile += [ "alchemy/alchemy.js", "alchemy/preview.js", "alchemy/alchemy.css", "alchemy/menubar.css", "alchemy/menubar.js", "alchemy/print.css", "alchemy/tinymce_content.css", "alchemy/tinymce_dialog.css", "tiny_mce/*" ] end initializer 'alchemy.flash_cookie' do |config| config.middleware.insert_after( 'ActionDispatch::Cookies', Alchemy::Middleware::FlashSessionCookie, ::Rails.configuration.session_options[:key] ) end # filter sensitive information during logging initializer "alchemy.params.filter" do |app| app.config.filter_parameters += [:password, :password_confirmation] end initializer "alchemy.add_authorization_rules" do Alchemy::AuthEngine.get_instance.load(File.join(File.dirname(__FILE__), '../..', 'config/authorization_rules.rb')) end initializer 'alchemy.include_authentication_helpers' do require File.join(File.dirname(__FILE__), 'authentication_helpers') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
alchemy_cms-2.2.rc13 | lib/alchemy/engine.rb |