Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (16 sloc) 0.293 kB
# encoding: UTF-8
module MongoMapper
module Plugins
module Equality
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.