Class: MongoMapper::Plugins::Associations::InArrayProxy

Inherits:
Object
  • Object
show all
Defined in:
lib/mm_uses_uuid.rb

Instance Method Summary collapse

Instance Method Details

#find_targetObject



24
25
26
27
28
29
30
31
# File 'lib/mm_uses_uuid.rb', line 24

def find_target
  return [] if ids.blank?
  if klass == UuidModel
    out = *UuidModel.find(*criteria[:_id])
  else
    all
  end
end