He calls super, which calls the method_missing On 16 Jan 2008, at 19:55, Mark Wilden wrote:
> > From: [email protected] > [mailto:[EMAIL PROTECTED] On Behalf Of Jan De Poorter > >> When you call a dynamic finder action (in your case find_by_ip), the >> ruby method_missing function is called. This magic functions takes >> the >> function you requested and creates it, which causes your function to >> be overwritten in favor of the created function. When you reload!, >> your model gets loaded again, and the created function is overwritten >> again. This isn't to be expected ofcourse. > > I must be missing something, because I don't see how the "manual" > method > could be overwritten. The creation of the dynamic finder happens in > method_missing, which wouldn't be called if the method existed, 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 -~----------~----~----~----~------~----~------~--~---
