instance method
==
Ruby on Rails 7.0.10
Since v5.2.8.1Signature
==(other)
Returns true if another Parameters object contains the same content and permitted flag.
Parameters
-
otherreq
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 255
def ==(other)
if other.respond_to?(:permitted?)
permitted? == other.permitted? && parameters == other.parameters
else
@parameters == other
end
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 255
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters