Fix rails 4.2 dependency