add rails 4 support