instance method
html_format?
Ruby on Rails 4.2.9
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 753
def html_format?(parameters)
return true unless parameters.key?(:format)
Mime.fetch(parameters[:format]) { Mime['html'] }.html?
end
Defined in actionpack/lib/action_controller/test_case.rb line 753
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::TestCase::Behavior