Sha256: 4795c878af05d9a1c54d38acfa5742083066736eb17a9f31bd5567bc9ff90d8c
Contents?: true
Size: 1.16 KB
Versions: 7
Compression:
Stored size: 1.16 KB
Contents
require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require(*Rails.groups) require "mighty_grid" module Dummy class Application < Rails::Application # Settings in config/environments/* take precedence over those specified here. # Application configuration should go into files in config/initializers # -- all .rb files in that directory are automatically loaded. config.assets.enabled = true # For RAILS 3.2 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. # config.time_zone = 'Central Time (US & Canada)' # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] # config.i18n.default_locale = :de end end configs = ERB.new(File.read(File.dirname(__FILE__) + '/database.yml')) db_params = configs.result(binding) ActiveRecord::Base.configurations = YAML.load(db_params) db_name = ENV['DB'] || 'sqlite' ActiveRecord::Base.establish_connection(db_name.to_sym)
Version data entries
7 entries across 7 versions & 1 rubygems