I have a specific gem gem installed and I wish to override the following method in the gem's module:
def trace
exception.backtrace.join("\n")
end
I need to change exception.backtrace.join("\n")
to exception.backtrace.join("<br>")
I don't want to create a new fork just for that, so I tried adding this in my initializers:
module ExceptionHandler
def trace
exception.backtrace.join("<br>")
end
end
This doesn't work (obviously).Could someone have a look at the module I linked above and let me know what I'm missing? Thanks!