Support JRuby only with Rails 4+.