instance method verify_request?

Ruby on Rails 4.0.13

Since v2.2.3 Last seen in v4.0.13

Available in: v2.2.3 v2.3.18 v3.0.20 v3.1.12 v3.2.22.5 v4.0.13

Signature

verify_request?()

Returns true if Action Pack should check requests using this Mime Type for possible request forgery. See ActionController::RequestForgeryProtection.

Source
# File actionpack/lib/action_dispatch/http/mime_type.rb, line 278
    def verify_request?
      ActiveSupport::Deprecation.warn "Mime::Type#verify_request? is deprecated and will be removed in Rails 4.1"
      @@browser_generated_types.include?(to_sym)
    end

Defined in actionpack/lib/action_dispatch/http/mime_type.rb line 278 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Mime::Type

Type at least 2 characters to search.

↑↓ navigate · open · esc close