lib/combustion.rb in combustion-0.5.5 vs lib/combustion.rb in combustion-0.6.0
- old
+ new
@@ -16,19 +16,20 @@
end
def self.initialize!(*modules, &block)
@@setup_environment = block if block_given?
+ options = modules.extract_options!
modules = Modules if modules == [:all]
modules.each { |mod| require "#{mod}/railtie" }
Bundler.require :default, Rails.env
Combustion::Application.configure_for_combustion
if modules.map(&:to_s).include? 'active_record'
Combustion::Application.config.to_prepare do
- Combustion::Database.setup
+ Combustion::Database.setup(options)
end
end
Combustion::Application.initialize!