Class: Combustion::Application

Inherits:
Rails::Application
  • Object
show all
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

Class Method Details

.configure_for_combustionObject

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).



33
34
35
36
37
38
39
# File 'lib/combustion/application.rb', line 33

def self.configure_for_combustion
  config.root = File.expand_path File.join(Dir.pwd, Combustion.path)

  CONFIGURERS.each { |configurer| configurer.call config }

  config.assets.enabled = true if defined?(Sprockets)
end