Class: Combustion::Application
- Inherits:
-
Rails::Application
- Object
- Rails::Application
- Combustion::Application
- Defined in:
- lib/combustion/application.rb
Class Method Summary collapse
-
.configure_for_combustion ⇒ Object
Some settings we’re not sure if we want, so let’s not load them by default.
Class Method Details
.configure_for_combustion ⇒ Object
Some settings we’re not sure if we want, so let’s not load them by default. Instead, wait for this method to be invoked (to get around load-order complications).
27 28 29 30 31 32 33 34 35 |
# File 'lib/combustion/application.rb', line 27 def self.configure_for_combustion config.root = File. File.join(Dir.pwd, Combustion.path) Combustion::Configurations::ActiveRecord.call config Combustion::Configurations::ActionController.call config Combustion::Configurations::ActionMailer.call config config.assets.enabled = true if defined?(Sprockets) end |