class ViewModel::ActiveRecord::ReferencedCollectionUpdate::Functional
Public Instance Methods
resolve_vm_reference(ref, update_context)
click to toggle source
# File lib/view_model/active_record/update_data.rb, line 337 def resolve_vm_reference(ref, update_context) update_context.resolve_reference(ref, nil).viewmodel_reference end
used_vm_refs(update_context)
click to toggle source
# File lib/view_model/active_record/update_data.rb, line 331 def used_vm_refs(update_context) references.map do |ref| resolve_vm_reference(ref, update_context) end end