Before a record is saved I need to set a required property. This
doesn't seem to work using the before :save hook.
Its actually a property in a join model.
Person
Place
PersonPlace
In PersonPlace there is a field that needs to have the id of the user
that created it.
Normally I would save the record with the following method:
person = Person.create({....})
place = Place.create({....})
place.people << person
however this doesn't allow me to add an additional property to the
join table.
Any ideas or recommendations?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/datamapper?hl=en.