instance method
verify_request?
Ruby on Rails 4.0.13
Since v2.2.3 Last seen in v4.0.13Signature
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