loosen rails dependency to allow it to work with rails4