Sha256: ae1a65ef55ee3c7a0b13bda20f1fad2bd0983dabd39d6fcf6f787fefbaa53526
Contents?: true
Size: 372 Bytes
Versions: 3
Compression:
Stored size: 372 Bytes
Contents
module KirguduBase module ConfigurationHelper def self.load_environment_variables(config, file_name) config.before_configuration do env_file = Rails.root.join("config", file_name).to_s YAML.load_file(env_file)[Rails.env].each do |key, value| ENV[key.to_s] = value end if File.exists?(env_file) end # end config.before_configuration end end end
Version data entries
3 entries across 3 versions & 1 rubygems