making rails 4 compatible