Sha256: 131bfebdc0b5f8efbea3a6ea0715d850e49556227eb334783ecc5ad2aa6a854f
Contents?: true
Size: 354 Bytes
Versions: 62
Compression:
Stored size: 354 Bytes
Contents
module MongoMapper module Plugins module Associations class Collection < Proxy def to_ary load_target if target.is_a?(Array) target.to_ary else Array(target) end end def reset super target = [] end end end end end
Version data entries
62 entries across 62 versions & 9 rubygems
Version | Path |
---|---|
jmonteiro-mongo_mapper-0.1.0 | lib/mongo_mapper/plugins/associations/collection.rb |
mongo_mapper-unstable-2010.1.12 | lib/mongo_mapper/plugins/associations/collection.rb |