Sha256: 1013b2fcbff91dd77bf67320bfb817269b838d3465af176ac2d344c309c6d76a

Contents?: true

Size: 1.19 KB

Versions: 3

Compression:

Stored size: 1.19 KB

Contents

Rails.env = 'test'

class Combustion::Application < Rails::Application
  config.root   = File.expand_path File.join(Dir.pwd, 'spec', 'internal')

  # Core Settings
  config.cache_classes               = true
  config.whiny_nils                  = true
  config.consider_all_requests_local = true
  config.secret_token                = Digest::SHA1.hexdigest Time.now.to_s

  # ActiveSupport Settings
  config.active_support.deprecation = :stderr

  # 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).
  def self.configure_for_combustion
    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.default_url_options = {:host => 'www.example.com'}
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
combustion-0.3.1 lib/combustion/application.rb
combustion-0.3.0 lib/combustion/application.rb
combustion-0.2.0 lib/combustion/application.rb