rails 4 model fix