Adapt Rails version.