Sha256: 3ae14748b9a5f47b8877bacdd60833ea7b3c9f8c002d42c8584999c0ad48c287
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' module EacRailsBase0App class Application < Rails::Application module Test common_concern do next unless ::Rails.env.test? setup('action_controller', 'general', 'log') end module ClassMethods def setup_action_controller config.action_controller.perform_caching = false config.action_controller.allow_forgery_protection = false end def setup_general config.cache_classes = true config.eager_load = false config.serve_static_files = true config.static_cache_control = 'public, max-age=3600' config.consider_all_requests_local = true config.action_dispatch.show_exceptions = false config.action_mailer.delivery_method = :test config.active_support.test_order = :random end def setup_log config.active_support.deprecation = :stderr end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eac_rails_base0-0.44.0 | lib/eac_rails_base0/app_base/application/test.rb |