lib/jets/booter.rb in jets-1.8.6 vs lib/jets/booter.rb in jets-1.8.7

- old
+ new

@@ -110,10 +110,10 @@ # Documented in DatabaseTasks that this is the right way to set it when # using ActiveRecord rake tasks outside of Rails. ActiveRecord::Tasks::DatabaseTasks.database_configuration = db_configs current_config = db_configs[Jets.env] - if current_config.empty? + if current_config.blank? abort("ERROR: config/database.yml exists but no environment section configured for #{Jets.env}") end # Using ActiveRecord rake tasks outside of Rails, so we need to set up the # db connection ourselves ActiveRecord::Base.establish_connection(current_config)