On Sep 20, 1:50 pm, "Greg Hauptmann" <[EMAIL PROTECTED]>
wrote:
> Hi,
>
> I want to override a method in a plugin (which itself is a method that
> when the plugin loads adds them via a mixin technique).
>
> I want to add a blank copy of this method outside the plugin (say in
> /lib/xx_extns.rb), HOWEVER how do I in my method call the plugin
> method first before doing my stuff?
>
> Super, doesn't work as I'm not sub-classing.,
>
> Thanks in advance

You chain the method by calling alias_method before "overriding" it.
You then call the name of the "aliased" method from your method.
--~--~---------~--~----~------------~-------~--~----~
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