@@ -37,6 +37,7 end | |||||
37 | # Include database gems for the adapters found in the database |
|
37 | # Include database gems for the adapters found in the database | |
38 | # configuration file |
|
38 | # configuration file | |
39 | require 'erb' |
|
39 | require 'erb' | |
|
40 | require 'yaml' | |||
40 | database_file = File.join(File.dirname(__FILE__), "config/database.yml") |
|
41 | database_file = File.join(File.dirname(__FILE__), "config/database.yml") | |
41 | if File.exist?(database_file) |
|
42 | if File.exist?(database_file) | |
42 | database_config = YAML::load(ERB.new(IO.read(database_file)).result) |
|
43 | database_config = YAML::load(ERB.new(IO.read(database_file)).result) |
General Comments 0
You need to be logged in to leave comments.
Login now