fixing rails 4 support