Module: Mongoid::Extensions::Array::Conversions
- Included in:
- Array
- Defined in:
- lib/mongoid/extensions/array/conversions.rb
Overview
This module converts arrays into mongoid related objects.
Instance Method Summary collapse
-
#mongoidize ⇒ Object
Converts this array into an array of hashes.
Instance Method Details
#mongoidize ⇒ Object
Converts this array into an array of hashes.
7 8 9 |
# File 'lib/mongoid/extensions/array/conversions.rb', line 7 def mongoidize collect { |obj| obj.attributes } end |