module MongoMapper::Plugins::Equality

Public Instance Methods

==(other)
Alias for: eql?
eql?(other) click to toggle source
# File lib/mongo_mapper/plugins/equality.rb, line 13
def eql?(other)
  other.is_a?(self.class) && _id == other._id
end
Also aliased as: ==
hash() click to toggle source
# File lib/mongo_mapper/plugins/equality.rb, line 18
def hash
  _id.hash
end