autosave for referenced_in

8 views
Skip to first unread message

Julian Maicher

unread,
Mar 25, 2011, 11:31:38 AM3/25/11
to Mongoid
Hey Durran,

since rc1 there is the ability to accept nested attributes for
referenced_in associations.
Is there a reason why the autosave option is not available?

Julian

Julian Maicher

unread,
Mar 25, 2011, 12:09:31 PM3/25/11
to Mongoid
I created a simple fix.

https://github.com/jmaicher/mongoid/commit/4cd5b5d14571ef68d7e280255b701ce280b11e24

(I created a new model Ghost for the specs. I used Agent first but you
removed all :create callbacks in
https://github.com/mongoid/mongoid/blob/master/spec/functional/mongoid/persistence/insert_spec.rb#L11).

I also created a pull request for that.
Reply all
Reply to author
Forward
0 new messages