Sha256: 9caeafb4fc134d5649bbb51975c99ef54128107a3bf69014845a1d216bca2306

Contents?: true

Size: 1.12 KB

Versions: 19

Compression:

Stored size: 1.12 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

	end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
alchemy_cms-2.1.12 lib/alchemy/engine.rb
alchemy_cms-2.1.11 lib/alchemy/engine.rb
alchemy_cms-2.1.9.1 lib/alchemy/engine.rb
alchemy_cms-2.1.9 lib/alchemy/engine.rb
alchemy_cms-2.1.8.1 lib/alchemy/engine.rb
alchemy_cms-2.1.8 lib/alchemy/engine.rb
alchemy_cms-2.1.7 lib/alchemy/engine.rb
alchemy_cms-2.1.6 lib/alchemy/engine.rb
alchemy_cms-2.1.5 lib/alchemy/engine.rb
alchemy_cms-2.1.4 lib/alchemy/engine.rb
alchemy_cms-2.1.3 lib/alchemy/engine.rb
alchemy_cms-2.1.2 lib/alchemy/engine.rb
alchemy_cms-2.1.1 lib/alchemy/engine.rb
alchemy_cms-2.1 lib/alchemy/engine.rb
alchemy_cms-2.1.rc6 lib/alchemy/engine.rb
alchemy_cms-2.1.rc5 lib/alchemy/engine.rb
alchemy_cms-2.1.rc4 lib/alchemy/engine.rb
alchemy_cms-2.1.rc3 lib/alchemy/engine.rb
alchemy_cms-2.1.rc2 lib/alchemy/engine.rb