I'm facing this problem while trying to extend the parse_redmine_links
helper method in Redmine-1.1.0 (Rails-2.3.5) from my plugin.
My idea is to use alias_method_chain so the extended version could
call the original version and adjust the result to it's liking.
Anything I've tried so far exposes this behavior: the first render of
a page uses the extended version, while every later renders use the
original unmodified helper.
I've tried to include my patch module in the plugin's init.rb like
Also I've tried to define my ApplicationHelper in myplugin/app/helper/
application_helper.rb with the same effect. Both approaches used
self.included hook to call alias_method_chain, like this:
alias_method_chain :parse_redmine_links, :pastes
Any ideas on how to accomplish the task are welcome!