Sha256: 310a5e4b587b5283e5201e1e63a0cbe4a7bc4efa35bcd927c8f95ce7c82477d2

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 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 NuraxPg
  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.

    # 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

6 entries across 6 versions & 1 rubygems

Version Path
hyrax-5.0.0.rc1 .koppie/config/application.rb
hyrax-4.0.0 .koppie/config/application.rb
hyrax-4.0.0.rc3 .koppie/config/application.rb
hyrax-4.0.0.rc2 .koppie/config/application.rb
hyrax-4.0.0.rc1 .koppie/config/application.rb
hyrax-4.0.0.beta2 .koppie/config/application.rb