Class: Combustion::Application
- Inherits:
-
Rails::Application
- Object
- Rails::Application
- Combustion::Application
- Defined in:
- lib/combustion/application.rb
Constant Summary collapse
- CONFIGURERS =
[ Combustion::Configurations::ActiveRecord, Combustion::Configurations::ActionController, Combustion::Configurations::ActionMailer, Combustion::Configurations::ActiveStorage ].freeze
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).
38 39 40 41 42 43 44 |
# File 'lib/combustion/application.rb', line 38 def self.configure_for_combustion config.root = File. File.join(Dir.pwd, Combustion.path) CONFIGURERS.each { |configurer| configurer.call config } config.assets.enabled = true if defined?(Sprockets) end |