Sha256: 1b69898a950aad619acfdc12039608b71c040fee9c5bc0cf0d0b25d1d7ccd3de

Contents?: true

Size: 327 Bytes

Versions: 1

Compression:

Stored size: 327 Bytes

Contents

module WashOut
  class Engine < ::Rails::Engine
    config.wash_out = ActiveSupport::OrderedOptions.new
    initializer "wash_out.configuration" do |app|
      if app.config.wash_out[:catch_xml_errors]
        app.config.middleware.insert_after(ActionDispatch::ShowExceptions, WashOut::Middleware)
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wash_out-0.12.0 lib/wash_out/engine.rb