Sha256: 25185d0ef93b1486510d710bc281f4a066bc759111346616b4010a05d2bfbb33

Contents?: true

Size: 333 Bytes

Versions: 1

Compression:

Stored size: 333 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.8 lib/confidential/railtie.rb