method

respond_to?

rails latest stable - Class: ActionDispatch::Response

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v4.1.8) is shown here.

respond_to?(method, include_private = false)
public

No documentation available.

# File actionpack/lib/action_dispatch/http/response.rb, line 210
    def respond_to?(method, include_private = false)
      if method.to_s == 'to_path'
        stream.respond_to?(method)
      else
        super
      end
    end