Module: Mongoid::Criteria::Queryable::Extensions::Array::ClassMethods
- Defined in:
- build/mongoid-8.1/lib/mongoid/criteria/queryable/extensions/array.rb
Instance Method Summary collapse
-
#evolve(object) ⇒ Object
Evolve the object when the serializer is defined as an array.
Instance Method Details
#evolve(object) ⇒ Object
Evolve the object when the serializer is defined as an array.
135 136 137 138 139 140 141 142 |
# File 'build/mongoid-8.1/lib/mongoid/criteria/queryable/extensions/array.rb', line 135 def evolve(object) case object when ::Array, ::Set object.map { |obj| obj.class.evolve(obj) } else object end end |