Hi,

I am having trouble overriding methods in a plugin.
I am trying to apply a patch to attachment_fu by overriding a method
in on of the attachment_fu modules from with a file in my libs folder.

I am using the suggestions from 
http://epirsch.blogspot.com/2008/01/fixing-attachmentfu-on-windows-like.html


If I paste the change directly into the atachment fu module the fix
works. However if I try to make the fix from within my
attachment_fu_patch.rb it doesn't work and ruby appears to be still
calling the original method.

This makes me ask the question: If you re-open modules and /or classes
multiple times and override methods, how does ruby know which one is
the "latest". ie how can I ensure that my override is the one that is
called?

Cheers
George


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