Sha256: 6899af5d3e3aac43280ce794607926e3c2e8db10e1d6e57effe6975846d62e60
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
require 'rails' module Proselytism class Engine < Rails::Engine ActiveSupport.on_load :before_initialize do |app| config_file_path = File.join(Rails.root, 'config', 'proselytism.yml') if File.exist?(config_file_path) params = YAML.load_file(config_file_path) Proselytism.config do |config| params[Rails.env].each do |k, v| config.send "#{k}=", v end Proselytism.config.logger = nil end end end ActiveSupport.on_load :after_initialize do |app| Proselytism.config.logger ||= Rails.logger end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
proselytism-0.0.1 | lib/proselytism/engine.rb |