format.to_s based on @cantino review

Albert Sun %!s(int64=9) %!d(string=hace) años
padre
commit
6a9ad21f13
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/models/agent.rb

+ 1 - 1
app/models/agent.rb

@@ -165,7 +165,7 @@ class Agent < ActiveRecord::Base
165 165
       if method(:receive_web_request).arity == 1
166 166
         handled_request = receive_web_request(request)
167 167
       else
168
-        handled_request = receive_web_request(params, request.method_symbol.to_s, request.format)
168
+        handled_request = receive_web_request(params, request.method_symbol.to_s, request.format.to_s)
169 169
       end
170 170
       handled_request.tap do
171 171
         self.last_web_request_at = Time.now