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).
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/combustion/application.rb', line 16 def self.configure_for_combustion config.root = File. File.join(Dir.pwd, Combustion.path) if defined?(ActionController) && defined?(ActionController::Engine) config.action_dispatch.show_exceptions = false config.action_controller.perform_caching = false config.action_controller.allow_forgery_protection = false end if defined?(ActionMailer) && defined?(ActionMailer::Engine) config.action_mailer.delivery_method = :test config.action_mailer. = {:host => 'www.example.com'} end if defined?(Sprockets) config.assets.enabled = true end end |