lib/combustion.rb in combustion-1.2.0 vs lib/combustion.rb in combustion-1.3.0
- old
+ new
@@ -20,20 +20,24 @@
:action_mailer => "action_mailer/railtie",
:action_view => "action_view/railtie"
}
hash[:sprockets] = "sprockets/railtie" if Rails.version.to_f >= 3.1
+ hash[:active_job] = "active_job/railtie" if Rails.version.to_f >= 4.2
+ hash[:action_cable] = "action_cable/engine" if Rails.version.to_f >= 5.0
hash[:active_storage] = "active_storage/engine" if Rails.version.to_f >= 5.2
+ hash[:action_text] = "action_text/engine" if Rails.version.to_f >= 6.0
+ hash[:action_mailbox] = "action_mailbox/engine" if Rails.version.to_f >= 6.0
hash
end.freeze
def self.initialize!(*modules, &block)
self.setup_environment = block if block_given?
options = modules.extract_options!
modules = MODULES.keys if modules == [:all]
- modules.each { |mod| require MODULES[mod] }
+ modules.each { |mod| require MODULES.fetch(mod, "#{mod}/railtie") }
Bundler.require :default, Rails.env
Combustion::Application.configure_for_combustion
include_database modules, options