I have a Person that has_many Things. I have defined a things method in
Person so that I can do some special filtering.
However, elsewhere I am doing “person.things << Thing.new…” and this
is now broken. Which, of course makes sense, because my overriden things
method just returns a filtered array of Thing objects… an array which
has now lost any of the one-to-many magic that rails would provide in
the original things method.
Any thoughts on dealing with this? Seems like I need to know what
enhanced array is being returned by rails so I can do the same thing.