Support Rails4 in JRuby Env