Sha256: 9ed93cd5d4da00f29625f99f3079c837a31cd273b50d1a9d2a21af054818e9af

Contents?: true

Size: 510 Bytes

Versions: 1

Compression:

Stored size: 510 Bytes

Contents

module Exceptron
  class Railtie < Rails::Railtie
    config.exceptron = Exceptron

    initializer "exceptron.swap_middlewares" do |app|
      app.middleware.swap "ActionDispatch::ShowExceptions",
        "Exceptron::Middleware", app.config.consider_all_requests_local
    end

    config.after_initialize do
      config.exceptron.enable!
      config.exceptron.controller ||= Exceptron::ExceptionsController
      config.exceptron.local_controller ||= Exceptron::LocalExceptionsController
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exceptron-0.0.2 lib/exceptron/railtie.rb