instance method
==
Ruby on Rails 6.1.7.10
Since v6.0.6 Last seen in v7.2.3Signature
==(other)
No documentation comment.
Parameters
-
otherreq
Source
# File activemodel/lib/active_model/validations/acceptance.rb, line 73
def ==(other)
self.class == other.class && attributes == other.attributes
end
Defined in activemodel/lib/active_model/validations/acceptance.rb line 73
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveModel::Validations::AcceptanceValidator::LazilyDefineAttributes