Sha256: a3253bdabc5c9ddb1177ae25dfc1209dde700ed56dba8baffb06184b80392cb0

Contents?: true

Size: 479 Bytes

Versions: 7

Compression:

Stored size: 479 Bytes

Contents

# frozen_string_literal: true

module SolidErrors
  class Engine < ::Rails::Engine
    isolate_namespace SolidErrors

    config.solid_errors = ActiveSupport::OrderedOptions.new

    initializer "solid_errors.config" do
      config.solid_errors.each do |name, value|
        SolidErrors.public_send(:"#{name}=", value)
      end
    end

    initializer "solid_errors.active_record.error_subscriber" do
      Rails.error.subscribe(SolidErrors::Subscriber.new)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solid_errors-0.6.1 lib/solid_errors/engine.rb
solid_errors-0.6.0 lib/solid_errors/engine.rb
solid_errors-0.5.0 lib/solid_errors/engine.rb
solid_errors-0.4.3 lib/solid_errors/engine.rb
solid_errors-0.4.2 lib/solid_errors/engine.rb
solid_errors-0.4.1 lib/solid_errors/engine.rb
solid_errors-0.4.0 lib/solid_errors/engine.rb