Wouldn't it be better to move this "checking" to a method (in activesupport for instance) so we can avoid code duplication and make sure we just have to change a single method in case future JRuby versions don't define a `JRUBY_VERSION`?