Sha256: 5a83bc8447023e3d357cc2e30ddff9fe33156886452ad4b83bc29679100e5544

Contents?: true

Size: 443 Bytes

Versions: 1

Compression:

Stored size: 443 Bytes

Contents

module Notable
  class Engine < ::Rails::Engine
    isolate_namespace Notable

    initializer "notable" do |app|
      if Notable.requests_enabled?
        # insert in same place as request_store
        app.config.middleware.insert_after ActionDispatch::RequestId, Notable::Middleware
        # TODO switch to register_interceptor in 0.6.0
        ActionDispatch::DebugExceptions.prepend Notable::DebugExceptions
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
notable-0.5.2 lib/notable/engine.rb