Fix Rails4 integs under JRuby's Ruby 2.0 mode