This is IMHO good solution for this problem:
issues_helper_patch.rb
module IssuesHelperPatch
module InstanceMethods
def render_custom_fields_rows_with_message(issue)
"It works".html_safe
end
end
def self.included(receiver)
receiver.send :include, InstanceMethods
receiver.class_eval do
alias_method_chain :render_custom_fields_rows, :message
end
end
end
init.rb
Rails.configuration.to_prepare do
require 'issues_helper_patch'
IssuesHelper.send :include, IssuesHelperPatch
end