change for rails 4