allow using with rails 4.x