-
Type: Task
-
Resolution: Done
-
Affects Version/s: None
-
Component/s: None
The fields are saved with the default values if you make a query with fields limit and save the record.
Record in the database:
#<Record _id: 4f1ff7e705d04c0e49000019, _type: nil, uid: BSON::ObjectId('4efe63b405d04c07f600000d'), title: "Title", public: true>
@record= Record.where(public: true).only(:_id, :public).find('4f1ff7e705d04c0e49000019') @record.save(:validate => false)
Get it
#<Record _id: 4f1ff7e705d04c0e49000019, _type: nil, uid: nil, title: nil, public: true>