Try to fix rails 4 support