Browse Source

Require 'yaml'.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11486 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/2.4.0
Jean-Philippe Lang 11 years ago
parent
commit
3f67ec4436
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      Gemfile

+ 2
- 1
Gemfile View File

@@ -1,4 +1,4 @@
source 'https://rubygems.org'
source 'http://rubygems.org'

gem 'rails', '3.2.12'
gem "jquery-rails", "~> 2.0.2"
@@ -37,6 +37,7 @@ end
# Include database gems for the adapters found in the database
# configuration file
require 'erb'
require 'yaml'
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
if File.exist?(database_file)
database_config = YAML::load(ERB.new(IO.read(database_file)).result)

Loading…
Cancel
Save