Method: Mongoid::Factory::Instantiator#selected_fields
- Defined in:
- lib/mongoid/factory.rb
#selected_fields ⇒ Array | nil (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns The list of field names that should be explicitly (and exclusively) included in the new record.
28 29 30 |
# File 'lib/mongoid/factory.rb', line 28 def selected_fields @selected_fields end |