instance method
html_format?
Ruby on Rails 3.2.22.5
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 538
def html_format?(parameters)
return true unless parameters.is_a?(Hash)
format = Mime[parameters[:format]]
format.nil? || format.html?
end
Defined in actionpack/lib/action_controller/test_case.rb line 538
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::TestCase::Behavior