>
> The trick is that link.emails isn't an array - it's an association
> proxy.
> I'm not sure what the write thing to do here is. Maybe something like
>

Thanks so much for your input. You got me in the right direction:

has_many :emails do
    def load_target
      super
      if !loaded? and proxy_owner.link.respond_to?(:emails)
        @target += proxy_owner.link.emails
      end
      @target
    end
  end

This works like a charm :) Thumbs up!

Marcel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to