Sha256: bcfadc3c21f817fcf259d65c43a5123d4d634faabd4194d07274d640027f3cfc
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
# encoding: UTF-8 module MongoMapper module Plugins module Equality module InstanceMethods def ==(other) other.is_a?(self.class) && _id == other._id end def eql?(other) self == other end def equal?(other) object_id === other.object_id end def hash _id.hash end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo_mapper_ign-0.7.8 | lib/mongo_mapper/plugins/equality.rb |