Sha256: 7b53d67345e892ae1c51caa9c24b760ce75dc520f96fd40a4b5d6f2c267dd3fd

Contents?: true

Size: 604 Bytes

Versions: 4

Compression:

Stored size: 604 Bytes

Contents

module Crimagify

	require 'rubygems'
	require 'rmagick'
	require 'carrierwave'

	class Engine < ::Rails::Engine
		isolate_namespace Crimagify

		config.generators.load_generators

		config.before_configuration do
			config_setting_app = File.join(Rails.root, 'config', 'crimagify_settings.yml')
			YAML.load(File.open(config_setting_app)).each do |key, value|
				ENV[key.to_s] = value.to_s
			end if File.exists?(config_setting_app)
		end

		initializer 'crimagify.action_controller' do |app|
			ActiveSupport.on_load :action_controller do
				helper Crimagify::ApplicationHelper
			end
		end

	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
crimagify-0.0.3.2 lib/crimagify/engine.rb
crimagify-0.0.3.1 lib/crimagify/engine.rb
crimagify-0.0.2.1 lib/crimagify/engine.rb
crimagify-0.0.2 lib/crimagify/engine.rb