instance method
==
Ruby on Rails edge
Since v5.0.7.2Signature
==(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 303
def ==(other)
if other.respond_to?(:permitted?)
permitted? == other.permitted? && parameters == other.parameters
else
super
end
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 303
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters