rails 4 syntax change