Sha256: a7882178daf00f615580c4e24bd90070d797486b5702e2f73d627e46b8eec914
Contents?: true
Size: 280 Bytes
Versions: 81
Compression:
Stored size: 280 Bytes
Contents
# encoding: UTF-8 require 'set' module MongoMapper module Extensions module Set def to_mongo(value) value.to_a end def from_mongo(value) (value || []).to_set end end end end class Set extend MongoMapper::Extensions::Set end
Version data entries
81 entries across 81 versions & 9 rubygems