``` ruby
if current_user.add_repository(repository)
```