Don't work with rails 4