Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (22 sloc) 0.431 kb
# encoding: UTF-8
module MongoMapper
module Plugins
module Equality
extend ActiveSupport::Concern
module ClassMethods
def ===(other)
other.is_a?(self)
end
end
module InstanceMethods
def eql?(other)
other.is_a?(self.class) && _id == other._id
end
alias :== :eql?
def hash
_id.hash
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.