Use mongoid write_attribute method instead of attribute= method to support dynamic fields #2
Loading…
Reference in New Issue
No description provided.
Delete Branch "master"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Using attribute= requires that the attribute be pre-defined in the model. Mongoid supports dynamic fields, http://mongoid.org/en/mongoid/docs/documents.html#dynamic_fields, however this functionality cannot be taken advantage of with the attribute= method.