Currently Fortitude still uses the alias_method_chain method instead of Module#prepend for old Ruby and JRuby.
At least when testing on JRuby 9.2.0.0, it still seems to have the issues mentioned in the comments where it stack overflows, as an interim solution I think we just replace it with equivalent code so Rails 5+ can be used.
Currently Fortitude still uses the
alias_method_chain
method instead ofModule#prepend
for old Ruby and JRuby.At least when testing on JRuby 9.2.0.0, it still seems to have the issues mentioned in the comments where it stack overflows, as an interim solution I think we just replace it with equivalent code so Rails 5+ can be used.