Sha256: 095926965f41aca077132df3630f42c925a1325126f61826deb48acbf5a4b7e3
Contents?: true
Size: 638 Bytes
Versions: 33
Compression:
Stored size: 638 Bytes
Contents
require 'rails_base/configuration/base' module RailsBase module Configuration class ExceptionsApp < Base EXCEPTIONS_PROC = Proc.new do |val, _instance| Rails.configuration.exceptions_app = val end DEFAULT_VALUES = { exceptions_app: { type: :klass, klass_type: [ActionDispatch::Routing::RouteSet], default: nil, default_assign_on_boot: -> { Rails.application.routes }, on_assignment: EXCEPTIONS_PROC, description: 'What route set to find the exceptions on.' } } attr_accessor *DEFAULT_VALUES.keys end end end
Version data entries
33 entries across 33 versions & 1 rubygems