Sha256: 6699319e587b1c6dfe04aa1cbd38c46e102a17e9762623fd31f47904793d3b7f
Contents?: true
Size: 338 Bytes
Versions: 1
Compression:
Stored size: 338 Bytes
Contents
module Confidential class Railtie < Rails::Railtie initializer 'confidential' do confidential_file = Rails.root.join('config', 'confidential.yml') if File.exist? confidential_file and envs = YAML.load(File.read(confidential_file)) envs.each { |key, value| ENV[key] = value } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
confidential-0.0.1 | lib/confidential/railtie.rb |