made rails dependency on >= 3.1