Support Rails4 in checking of using mount method