Sha256: d27f5f6d85ea0f15da4e9c4408c37e8b075a532717d241a0536830c38088a3d7

Contents?: true

Size: 1.18 KB

Versions: 5

Compression:

Stored size: 1.18 KB

Contents

require_relative 'boot'

require 'rails/all'

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module Koppie
  class Application < Rails::Application
    # Initialize configuration defaults for originally generated Rails version.
    config.load_defaults 6.0

    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration can go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded after loading
    # the framework and any gems in your application.
    config.session_store :cookie_store, key: "_#{ENV.fetch('APP_NAME', 'koppie')}_session"

    # use SideKiq by default
    config.active_job.queue_adapter = :sidekiq

    if ENV["RAILS_LOG_TO_STDOUT"]
      logger = ActiveSupport::Logger.new($stdout)
      logger.formatter = config.log_formatter
      config.logger = ActiveSupport::TaggedLogging.new(logger)
    end

    # The locale is set by a query parameter, so if it's not found render 404
    config.action_dispatch.rescue_responses.merge!(
      'I18n::InvalidLocale' => :not_found
    )
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hyrax-5.0.2 .koppie/config/application.rb
hyrax-5.0.1 .koppie/config/application.rb
hyrax-5.0.0 .koppie/config/application.rb
hyrax-5.0.0.rc3 .koppie/config/application.rb
hyrax-5.0.0.rc2 .koppie/config/application.rb