Loosen rails dependency