fix rails 4