Sha256: 7166ed9869b17454d2b6f7290c8e83be8ad6ee4d72b574624fd172be937f1a27

Contents?: true

Size: 417 Bytes

Versions: 6

Compression:

Stored size: 417 Bytes

Contents

# Loads config/settings.yml into SETTINGS[]
config_file = File.join(Rails.root,'config','settings.yml')
if File.exists?(config_file)
  SETTINGS = YAML.load_file(config_file)[Rails.env]
end

# Loads config/settings_private.yml (sensitive settings) into PRIVATE[]
private_file = File.join(Rails.root,'config','settings_private.yml')
if File.exists?(private_file)
  PRIVATE = YAML.load_file(private_file)[Rails.env]
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
cambium-0.3.0 lib/generators/cambium/templates/config/initializers/_settings.rb
cambium-0.2.2 lib/generators/cambium/templates/config/initializers/_settings.rb
cambium-0.2.1 lib/generators/cambium/templates/config/initializers/_settings.rb
cambium-0.2.0 lib/generators/cambium/templates/config/initializers/_settings.rb
cambium-0.0.2 lib/generators/cambium/templates/config/initializers/_settings.rb
cambium-0.0.1 lib/generators/cambium/templates/config/initializers/_settings.rb