add rails 4 support, closes #7