mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
call super rather than delegating to the other objects equal? method
This commit is contained in:
@@ -1798,7 +1798,7 @@ MSG
|
||||
# Note also that destroying a record preserves its ID in the model instance, so deleted
|
||||
# models are still comparable.
|
||||
def ==(comparison_object)
|
||||
comparison_object.equal?(self) ||
|
||||
super ||
|
||||
comparison_object.instance_of?(self.class) &&
|
||||
id.present? &&
|
||||
comparison_object.id == id
|
||||
|
||||
Reference in New Issue
Block a user