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

Version Path
heartwood-0.0.1 lib/generators/templates/config/initializers/_settings.rb
cambium-1.3.2 lib/generators/templates/config/initializers/_settings.rb
cambium-1.3.1 lib/generators/templates/config/initializers/_settings.rb
cambium-1.3.0 lib/generators/templates/config/initializers/_settings.rb
cambium-1.2.3 lib/generators/templates/config/initializers/_settings.rb
cambium-1.2.2 lib/generators/templates/config/initializers/_settings.rb
cambium-1.2.1 lib/generators/templates/config/initializers/_settings.rb
cambium-1.2.0 lib/generators/templates/config/initializers/_settings.rb
cambium-1.1.6 lib/generators/templates/config/initializers/_settings.rb
cambium-1.1.5 lib/generators/templates/config/initializers/_settings.rb
cambium-1.1.4 lib/generators/templates/config/initializers/_settings.rb
cambium-1.1.3 lib/generators/templates/config/initializers/_settings.rb
cambium-1.1.2 lib/generators/templates/config/initializers/_settings.rb
cambium-1.1.1 lib/generators/templates/config/initializers/_settings.rb
cambium-1.1.0 lib/generators/templates/config/initializers/_settings.rb
cambium-1.0.4 lib/generators/templates/config/initializers/_settings.rb
cambium-1.0.3 lib/generators/templates/config/initializers/_settings.rb
cambium-1.0.2 lib/generators/templates/config/initializers/_settings.rb
cambium-1.0.1 lib/generators/templates/config/initializers/_settings.rb
cambium-1.0.0 lib/generators/templates/config/initializers/_settings.rb