On Friday, May 2, 2014 9:07:50 AM UTC-7, Jef Harkay wrote:
>
> And I can't simply do
>
> Author.create(:name => "bleh", :book_pks => [1, 2, 3])
>
> Because I imagine create is calling save under the hood, and that's basically
> the same problem...
>
>
You can support that API if you want:
class Author
def book_pks=(v)
new? ? after_save_hook{super} : super
end
end
Thanks,
Jeremy
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.