diff --git a/lib/roo_on_rails/railties/http.rb b/lib/roo_on_rails/railties/http.rb
index <HASH>..<HASH> 100644
--- a/lib/roo_on_rails/railties/http.rb
+++ b/lib/roo_on_rails/railties/http.rb
@@ -17,7 +17,7 @@ module RooOnRails
           ::Rack::Timeout
         )
 
-        middleware_to_insert_before = defined?('Rack::Head') ? ::Rack::Head : ::ActionDispatch::Cookies
+        middleware_to_insert_before = defined?(::Rack::Head) ? ::Rack::Head : ::ActionDispatch::Cookies
 
         # This needs to be inserted low in the stack, before Rails returns the
         # thread-current connection to the pool.
Make it smarter about picking middleware