Displaying 1 result from an estimated 1 matches for "applicationhelperpatch".
2011 Apr 08
5
How to extend a helper using plugin?
...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
this:
require_dependency ''application_helper''
ApplicationHelper.send(:include,
RedminePastebin::ApplicationHelperPatch)
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:
def self.included(base)
base.module_eval do
alias_method_chain :parse_redmine_li...