Send object a message instead of directly setting the attribute #1

Merged
Pickachu merged 1 commits from patch-1 into master 2013-08-01 20:59:42 +00:00
Pickachu commented 2013-08-01 19:22:22 +00:00 (Migrated from github.com)

This line will lead to fail when you have nested attributes in a document.

Since the access to the property is made directly (through the #[] method) mongoid will store the association_attributes as a property of the document, instead of triggering the nested attributes generated method.

This little patch fixes this issue.

This line will lead to fail when you have nested attributes in a document. Since the access to the property is made directly (through the #[] method) mongoid will store the association_attributes as a property of the document, instead of triggering the nested attributes generated method. This little patch fixes this issue.
johnbintz commented 2013-08-01 20:59:48 +00:00 (Migrated from github.com)

Thanks!

Thanks!
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#1
No description provided.