Move to rails 4