Sha256: 0857511aaaa49b6a12b28bcf25b843de91ec49248e32e5012c222dec29275cc9

Contents?: true

Size: 1 KB

Versions: 3

Compression:

Stored size: 1 KB

Contents

require "active_support/core_ext/integer/time"

Rails.application.configure do
  config.enable_reloading = false

  config.eager_load = ENV["CI"].present?

  config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{1.hour.to_i}" }

  # Show full error reports and disable caching.
  config.consider_all_requests_local = true
  config.action_controller.perform_caching = false
  config.cache_store = :null_store

  config.action_dispatch.show_exceptions = :rescuable

  config.action_controller.allow_forgery_protection = false

  config.action_mailer.perform_caching = false
  config.action_mailer.delivery_method = :test

  config.action_mailer.default_url_options = { host: "www.example.com" }

  config.active_support.deprecation = :stderr
  config.active_support.disallowed_deprecation = :raise
  config.active_support.disallowed_deprecation_warnings = []

  config.factory_bot.definition_file_paths = [File.expand_path('../../../factories', __dir__)]

  config.middleware.use Clearance::BackDoor
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
clearance-2.9.2 spec/dummy/config/environments/test.rb
clearance-2.9.1 spec/dummy/config/environments/test.rb
clearance-2.9.0 spec/dummy/config/environments/test.rb