Sha256: 0404ebe26dc34d3521eb6aa0eafaffd64dc61ca1e9f0a83ee70bdd187abe37da

Contents?: true

Size: 413 Bytes

Versions: 1

Compression:

Stored size: 413 Bytes

Contents

# -*- encoding : utf-8 -*-

# Defaults values
App.config.define :default_ar do

  database_yml do
    @database_yml ||= begin
      require 'erb'
      YAML.load(
        ERB.new(
          File.read(File.join(App.root, %w{config database.yml} ))
        ).result
      )
    rescue
      raise "Not found config/database.yml"
    end
  end

  database_settings do
    App.config.database_yml[App.env]
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-app-ar-0.1.2 lib/config.rb