Sha256: 4aeecb635ca1bd5d578530d25303444310ac5eea27b50105081181d2adce93ec
Contents?: true
Size: 514 Bytes
Versions: 28
Compression:
Stored size: 514 Bytes
Contents
module MongoMapper module Plugins module Associations class ManyEmbeddedProxy < EmbeddedCollection def replace(values) @_values = values.map do |v| v.respond_to?(:attributes) ? v.attributes : v end reset end private def find_target (@_values || []).map do |v| child = klass.load(v) assign_references(child) child end end end end end end
Version data entries
28 entries across 28 versions & 5 rubygems