has_many :through extended with writer and clear methods

I hope this hasn't been asked yet. I couldn't find it if it was.

I've extended the has_many through association to include a clear method as well as adding a mass assignment for the collection.

I wanted to know if what I am doing is sane and/or if it is redundant because it is already being worked into rails edge.

The full description and code is at http://www.nkryptic.com/2006/11/12/make-has_many-through-more-like-has_many

If there is a better way to handle this, or if there is some reason that what I'm doing will cause other problems, please let me know. Otherwise, feel free to use it.

Jacob

I've extended the has_many through association to include a clear method as well as adding a mass assignment for the collection.

I dunno that I see the need for this. If the instances of the :through association don't matter, just use has_and_belongs_to_many. If they do matter, then you should be constructing them yourself in code.