Adds rails 4 support