support rails 4.0