Changed dependency of railties to be pessimistic

Ensures rails 4.0.x compatibility