instance method html_format?

Ruby on Rails 4.1.16

Since v3.1.12 Last seen in v4.2.9 Private

Available in: v3.1.12 v3.2.22.5 v4.0.13 v4.1.16 v4.2.9

Signature

html_format?(parameters)

No documentation comment.

Parameters

parameters req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close