instance method
html_format?
Ruby on Rails 4.1.16
Since v3.1.12 Last seen in v4.2.9 PrivateSignature
html_format?(parameters)
No documentation comment.
Parameters
-
parametersreq
Source
# File actionpack/lib/action_controller/test_case.rb, line 681
def html_format?(parameters)
return true unless parameters.is_a?(Hash)
Mime.fetch(parameters[:format]) { Mime['html'] }.html?
end
Defined in actionpack/lib/action_controller/test_case.rb line 681
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::TestCase::Behavior