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

23 lines (20 sloc) 0.413 kb
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
Jump to Line
Something went wrong with that request. Please try again.