lib/jets/application.rb in jets-0.8.6 vs lib/jets/application.rb in jets-0.8.8
- old
+ new
@@ -112,9 +112,10 @@
end
def load_db_config
config.database = {}
+ Jets::Dotenv.load!
database_yml = "#{Jets.root}config/database.yml"
if File.exist?(database_yml)
text = Jets::Erb.result(database_yml)
db_config = YAML.load(text)
config.database = db_config