Sha256: e6874267e0be18f5544a91a980bb1ddf17436a23fbf75358bfae13304f973fc2
Contents?: true
Size: 1.65 KB
Versions: 2
Compression:
Stored size: 1.65 KB
Contents
# frozen_string_literal: true require 'rails/all' require 'reji' module Dummy APP_ROOT = File.expand_path(__dir__).freeze I18n.enforce_available_locales = true class Application < Rails::Application config.action_controller.allow_forgery_protection = false config.action_controller.perform_caching = false config.action_dispatch.show_exceptions = false config.action_mailer.default_url_options = { host: 'dummy.example.com' } config.action_mailer.delivery_method = :test config.active_support.deprecation = :stderr config.active_support.test_order = :random config.cache_classes = true config.consider_all_requests_local = true config.eager_load = false config.encoding = 'utf-8' config.paths['app/controllers'] << "#{APP_ROOT}/app/controllers" config.paths['app/models'] << "#{APP_ROOT}/app/models" config.paths['app/views'] << "#{APP_ROOT}/app/views" config.paths['config/database'] = "#{APP_ROOT}/config/database.yml" config.paths['log'] = 'tmp/log/development.log' config.paths.add 'config/routes.rb', with: "#{APP_ROOT}/config/routes.rb" config.secret_key_base = 'SECRET_KEY_BASE' if config.active_record.sqlite3.respond_to?(:represent_boolean_as_integer) config.active_record.sqlite3.represent_boolean_as_integer = true if Rails::VERSION::MAJOR < 6 end config.action_mailer.delivery_job = 'ActionMailer::MailDeliveryJob' if Rails::VERSION::MAJOR >= 6 config.active_job.queue_adapter = :inline def require_environment! initialize! end def initialize!(&block) FileUtils.mkdir_p(Rails.root.join('db').to_s) super unless @initialized end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reji-1.1.1 | spec/dummy/application.rb |
reji-1.1.0 | spec/dummy/application.rb |