On Wednesday, February 10, 2016 at 3:28:04 PM UTC-8, Jeremy Evans wrote: > > On Wednesday, February 10, 2016 at 3:07:32 PM UTC-8, Jonas Broberg wrote: >> >> Hi Jeremy, >> >> Great work! >> >> I do however have an issue: >> >> association_pks delay_pks: :always incompatible with disassociating last >> object? >> >> In version 4.31.0 >> association_pks.rb >> >> line 144 (the delayed case, after_save) performs call unless pks.empty? >> line 183 (no delay) always performs call >> >> My experience is that I cannot disassociate the last associated object >> when using the delay option set to always, since the pks array will be >> empty in this case. >> Is this by design or a bug? >> > > Thanks for the report. I think this is a bug. Setting an empty array > should remove all existing associated rows. I'll work on a fix. >
Fixed: https://github.com/jeremyevans/sequel/commit/fbb5a86676aa108bc0d8e0ce8902b0c453bf8f37 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 https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
