Sha256: e0a5aa348ff91b7f59d00c0991c1c5303169999f288fbbc8367064e387629697

Contents?: true

Size: 200 Bytes

Versions: 14

Compression:

Stored size: 200 Bytes

Contents

module MongoMapper
  module Plugins
    module Equality
      module InstanceMethods
        def ==(other)
          other.is_a?(self.class) && _id == other._id
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
mongo_mapper-unstable-2010.1.22 lib/mongo_mapper/plugins/equality.rb
mongo_mapper-unstable-2010.1.21 lib/mongo_mapper/plugins/equality.rb
mongo_mapper-unstable-2010.1.20 lib/mongo_mapper/plugins/equality.rb
mongo_mapper-unstable-2010.1.19 lib/mongo_mapper/plugins/equality.rb
jmonteiro-mongo_mapper-0.1.7 lib/mongo_mapper/plugins/equality.rb
mongo_mapper-unstable-2010.1.18 lib/mongo_mapper/plugins/equality.rb
jmonteiro-mongo_mapper-0.1.6 lib/mongo_mapper/plugins/equality.rb
jmonteiro-mongo_mapper-0.1.5 lib/mongo_mapper/plugins/equality.rb
mongo_mapper-unstable-2010.1.17 lib/mongo_mapper/plugins/equality.rb
jmonteiro-mongo_mapper-0.1.4 lib/mongo_mapper/plugins/equality.rb
jmonteiro-mongo_mapper-0.1.2 lib/mongo_mapper/plugins/equality.rb
jmonteiro-mongo_mapper-0.1.1 lib/mongo_mapper/plugins/equality.rb
jmonteiro-mongo_mapper-0.1.0 lib/mongo_mapper/plugins/equality.rb
mongo_mapper-unstable-2010.1.12 lib/mongo_mapper/plugins/equality.rb