From 4f2a783727476f932aaff288b4aa87caf00f3f0a Mon Sep 17 00:00:00 2001 From: rada bogdan Date: Fri, 6 Oct 2017 17:16:37 +0300 Subject: [PATCH] fix adding middleware for rails 5.1.0 (#234) --- lib/wash_out/engine.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/wash_out/engine.rb b/lib/wash_out/engine.rb index 72e42dc6..99abf0ed 100644 --- a/lib/wash_out/engine.rb +++ b/lib/wash_out/engine.rb @@ -1,10 +1,9 @@ - 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 + app.config.middleware.insert_after(ActionDispatch::ShowExceptions, WashOut::Middleware) end end