Rails4 support