Not compatible with rails 3.1