lib/api_auth/headers.rb in api-auth-0.9.1 vs lib/api_auth/headers.rb in api-auth-0.9.2
- old
+ new
@@ -17,9 +17,11 @@
@request = CurbRequest.new(request)
when /ActionController::Request/
@request = ActionControllerRequest.new(request)
when /ActionController::TestRequest/
@request = ActionControllerRequest.new(request)
+ when /ActionDispatch::Request/
+ @request = ActionDispatchRequest.new(request)
else
raise UnknownHTTPRequest, "#{request.class.to_s} is not yet supported."
end
true
end