summaryrefslogtreecommitdiffstats
path: root/Gemfile
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-25 17:31:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2013-02-25 17:31:58 +0000
commit3f67ec44361da3cce0b30e88e1b62dcc58ddcc6c (patch)
tree36f11773bb3bceab6eadb43ea8595663261e035a /Gemfile
parent36da6d0f80b92faf7446131ad4b7233840069614 (diff)
downloadredmine-3f67ec44361da3cce0b30e88e1b62dcc58ddcc6c.tar.gz
redmine-3f67ec44361da3cce0b30e88e1b62dcc58ddcc6c.zip
Require 'yaml'.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11486 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Gemfile b/Gemfile
index 6ce41d415..999b86b15 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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)