On Thursday, July 30, 2015 at 1:07:35 PM UTC-7, [email protected] wrote:
>
> Looking at the many to many "remove_all_*" 
> <http://sequel.jeremyevans.net/rdoc/files/doc/association_basics_rdoc.html#label-remove_all_association+-28e.g.+remove_all_albums-29+-5Bone_to_many+and+many_to_many-5D>
>  
> it states that I should get the count of deleted rows returned to me. 
>  Instead, I get an empty array if there is nothing to delete, or, I will 
> get an array of the associations that were deleted.  Please advise as to 
> what I should be expecting?
>

The documentation is wrong, I don't believe Sequel ever operated that way. 
 At least, It hasn't since 3.0 (not sure about before 
3.0): 
https://github.com/jeremyevans/sequel/blob/3.0.0/lib/sequel/model/associations.rb#L868-L870

I'll update the documentation to reflect that it returns the previously 
cached associated records, or nil if there weren't any cached.

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.

Reply via email to