mike wrote: > Afaik it has nothing to do with method missing magic. Its just that if > you overwrite a method, a call to super invokes the original method.
Not really. As far as I know, super calls the method of the same name *in the parent class*, which isn't always the same thing. That's why we have alias_method_chain -- it wouldn't be necessary if super worked the way you claim. > AR injects accessor methods for every table column into the class. But into the model class itself, not AR::Base. There is no AR::Base#caption method for super to call. I suspect that super simply triggers AR's method_missing, which happens to do the right thing in this case. But that shouldn't be relied on as a general rule c > > 2009/10/8, Marnen Laibow-Koser <[email protected]>: >> Marnen Laibow-Koser >> http://www.marnen.org >> [email protected] >> -- >> Posted via http://www.ruby-forum.com/. >> >> > >> > > -- > Von meinen Mobilgerät aus gesendet -- Posted via http://www.ruby-forum.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 -~----------~----~----~----~------~----~------~--~---

