lib/slowpoke/railtie.rb in slowpoke-0.1.2 vs lib/slowpoke/railtie.rb in slowpoke-0.1.3
- old
+ new
@@ -1,10 +1,10 @@
module Slowpoke
class Railtie < Rails::Railtie
initializer "slowpoke" do |app|
Rack::Timeout.timeout = Slowpoke.timeout
- app.config.middleware.insert_before "ActionDispatch::RemoteIp", "Rack::Timeout"
+ app.config.middleware.insert_before ActionDispatch::RemoteIp, Rack::Timeout
# prevent RequestExpiryError from killing web server
app.config.middleware.insert 0, Slowpoke::Middleware
end
end