On 17 Apr 2009, at 11:27, Chris wrote: > > > However, this just gives me an > instance.meta_associations.meta_associations method, rather than > overriding the default instance.meta_associations. Is this possible, > or should I forget using :has_many and manually write all the > collection accessors/mutators? > Well you cannot overwrite the instance.meta_associations method like that (since you're adding method to the associations proxy, but foo.meta_associations just returns that proxy).
You may get some mileage out of overwriting the methods that actually load the association (find_target, the method that generates the scope used for other operations etc) Fred > Thanks, > Chris > -- > www.chrisblunt.com > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

