Works under Rails v4.0.0