Use mongoid write_attribute method instead of attribute= method to support dynamic fields #2

Merged
pblesi merged 2 commits from master into master 2014-06-06 14:50:11 +00:00
pblesi commented 2014-03-18 02:14:23 +00:00 (Migrated from github.com)

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.

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.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: github-migration/seed-fu-mongoid#2
No description provided.