lib/active_mongoid/associations/record_relation/referenced/many.rb
# TODO: look into AR analog to collection insert
look into AR analog to collection insert
look into AR analog to collection insert
def persist_delayed(objs, inserts)
            unless objs.empty?
              inserts.each do |insert|
                insert.save
              end
              objs.each do |obj|
              end
            end
          end
def persist_delayed ( objs , inserts ) unless objs . empty? inserts . each do | insert | insert . save end objs . each do | obj | end end end
TODO: look into AR analog to collection insert
TODO : look into AR analog to collection insert
# collection.insert(inserts) # obj.save # obj.post_persist
objs
<not_specific>
inserts
<not_specific>