I have a has_many through:
Foo has many Bar through foo_bars
I want to pass an array of bar ids to some method on Foo that will remove the relationship in both directions-
Something like
foo.bars.delete([1,3,5,8])
However, delete
only accepts the ID of one Model. There has got to be a way to do this in bulk and I just cannot find the answer. Any help is much appreciated.