allow working with rails 4