allow to be used with rails 4.x