Sha256: 65987ad22ce2eabd6ffdafe0ee0ae81c284284e4e14c5da5d67c4ea5ef33a311

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

module Confidential
  class Railtie < Rails::Railtie
 
    config.before_configuration 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.5 lib/confidential/railtie.rb