Sha256: 0b077a7baf7dd18ec2ed098e86ca4078d126188155da5e3c4dac2c96534a224e

Contents?: true

Size: 347 Bytes

Versions: 3

Compression:

Stored size: 347 Bytes

Contents

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

    initializer "notable" do |app|
      if Notable.requests_enabled?
        app.config.middleware.insert_after RequestStore::Middleware, Notable::Middleware
        ActionDispatch::DebugExceptions.send(:prepend, Notable::DebugExceptions)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
notable-0.2.2 lib/notable/engine.rb
notable-0.2.1 lib/notable/engine.rb
notable-0.2.0 lib/notable/engine.rb