updated rails dependency for rails4