lib/passaporte_web/identity.rb in passaporteweb-client-0.0.18 vs lib/passaporte_web/identity.rb in passaporteweb-client-0.0.19
- old
+ new
@@ -136,10 +136,12 @@
end
end
# Compares one Identity with another, returns true if they have the same UUID.
def ==(other)
- self.uuid == other.uuid
+ if self.respond_to?(:uuid) && other.respond_to?(:uuid)
+ self.uuid == other.uuid
+ end
end
# Returns true if both Identity are the same object.
def ===(other)
self.object_id == other.object_id