Allow for optimistic rails versioning (support for 4.0+)