Sha256: 58d5694156c46c1b5a9fa14a2e0c05bb48402a4fe9b8bcc68b2693956fe2fe47

Contents?: true

Size: 407 Bytes

Versions: 2

Compression:

Stored size: 407 Bytes

Contents

module DebugExtras
  class Railtie < Rails::Railtie
    initializer "debug_extras.configure_rails_initialization" do
      if defined? ActionDispatch::DebugExceptions
        app.middleware.insert_after ActionDispatch::DebugExceptions, DebugExtras::Middleware
      else
        app.middleware.use DebugExtras::Middleware
      end
    end

    private

    def app
      Rails.application
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
debug-extras-0.3.0 lib/debug_extras/railtie.rb
debug-extras-0.2.0 lib/debug_extras/railtie.rb