Sha256: d7063d23131c4dca0f9d0fc8bb60a41f9d29cf12ca538420f43ac0ea46519619
Contents?: true
Size: 393 Bytes
Versions: 1
Compression:
Stored size: 393 Bytes
Contents
# encoding: UTF-8 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo_mapper_ign-0.7.8 | lib/mongo_mapper/plugins/associations/collection.rb |