On Feb 12, 6:11 am, Frederick Cheung <[email protected]>
wrote:
>
> Have you also overridden respond_to?

I played around with overriding respond_to?, and figured out how to
make this all work.  Apparently, in Rails 2.2, if respond_to? returns
false, method_missing gets called on the association proxy instead of
the base class.  Although, I have to wonder if there's a better way to
accomplish this than through method_missing.  Maybe there's some way
to loop through all attributes and call alias_attribute dynamically
when classes are loaded?

Anyway, thanks for the help.

Jim


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