instance method handle_old_process_api

Ruby on Rails 4.0.13

Since v4.0.13 Last seen in v4.0.13 Private

Signature

handle_old_process_api(http_method, args, callstack)

No documentation comment.

Parameters

http_method req
args req
callstack req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close