supporting rails 4.2.0