updated railties >= 3.1