Sha256: 068d786bb57eb48298df3b5fc9b39905fd94f95f3923d0e66d0d71910ed8f2a8
Contents?: true
Size: 631 Bytes
Versions: 1
Compression:
Stored size: 631 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') puts config_setting_app 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crimagify-0.0.3.6 | lib/crimagify/engine.rb |