Rails4 compatible