rails 4.1.7 compatibility