Sha256: 699bf7869f75765c83f16bdb81496dbb6859dd648d036120f8a99dde061b6e50
Contents?: true
Size: 378 Bytes
Versions: 20
Compression:
Stored size: 378 Bytes
Contents
# encoding: UTF-8 module MongoMapper module Plugins module Equality extend ActiveSupport::Concern module ClassMethods def ===(other) other.is_a?(self) end end def eql?(other) other.is_a?(self.class) && _id == other._id end alias :== :eql? def hash _id.hash end end end end
Version data entries
20 entries across 20 versions & 3 rubygems