Module: Mongoid::Criteria::Queryable::Extensions::Set::ClassMethods
- Defined in:
- lib/mongoid/criteria/queryable/extensions/set.rb
Instance Method Summary collapse
-
#evolve(object) ⇒ Array
Evolve the set, casting all its elements.
Instance Method Details
#evolve(object) ⇒ Array
Evolve the set, casting all its elements.
23 24 25 26 |
# File 'lib/mongoid/criteria/queryable/extensions/set.rb', line 23 def evolve(object) return object if !object || !object.respond_to?(:map) object.map{ |obj| obj.class.evolve(obj) } end |