Sha256: 36a28f9aa9a0d32a5605e8d2c105878f82a15bad357f25bdfd2efd5202edaf7b
Contents?: true
Size: 500 Bytes
Versions: 20
Compression:
Stored size: 500 Bytes
Contents
# Load config/settings.yml into Settings OpenStruct # begin config_file = File.join(Rails.root,'config','settings.yml') Settings = YAML.load_file(config_file)[Rails.env].to_ostruct rescue raise "Can't find file: #{config_file}" end # Loads config/private.yml (sensitive settings) into Private # OpenStruct # begin private_file = File.join(Rails.root,'config','private.yml') Private = YAML.load_file(private_file)[Rails.env].to_ostruct rescue raise "Can't find file: #{private_file}" end
Version data entries
20 entries across 20 versions & 2 rubygems