instance method
handle_old_process_api
Ruby on Rails 4.0.13
Since v4.0.13 Last seen in v4.0.13 PrivateSignature
handle_old_process_api(http_method, args, callstack)
No documentation comment.
Parameters
-
http_methodreq -
argsreq -
callstackreq
Source
# File actionpack/lib/action_controller/test_case.rb, line 634
def handle_old_process_api(http_method, args, callstack)
# 4.0: Remove this method.
if http_method.is_a?(Hash)
ActiveSupport::Deprecation.warn("TestCase#process now expects the HTTP method as second argument: process(action, http_method, params, session, flash)", callstack)
args.unshift(http_method)
http_method = args.last.is_a?(String) ? args.last : "GET"
end
[http_method, args]
end
Defined in actionpack/lib/action_controller/test_case.rb line 634
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::TestCase::Behavior