From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Rick DeNatale
>It has to be overwriting the definition in his subclass of AR::Base, >otherwise he wouldn't have seen the problem. Let me see if I got this straight. 1) Model#find_x is defined 2) When find_x is called, it calls super, which is AR::Base#find_x. 3) AR::Base has no such method, so method_missing is called in the context of Model (not AR::Base) 4) method_missing generates Model#find_x So what's weird is that method_missing is adding a method to the subclass that already exists, just because the method can't be found in the superclass. Am I understanding this right? ///ark --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" 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-core?hl=en -~----------~----~----~----~------~----~------~--~---
