Class: Combustion::Application

Inherits:
Rails::Application
  • Object
show all
Defined in:
lib/combustion/application.rb

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



27
28
29
30
31
32
33
34
35
# File 'lib/combustion/application.rb', line 27

def self.configure_for_combustion
  config.root = File.expand_path 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