replace AR patch for jruby