fix support rails 4.2