Refactor "User#unfollow into a service
Why are we doing this work
Same benefits as #375061. Also, it makes sense to turn User#unfollow into a service after User#follow was turned into a service
Should be similar to the work done here !135060
Implementation plan
- Create
app/services/users/unfollow_service.rb
- Move the logic from
User#unfollow
into this service - Delete
User#unfollow
- Replace usages of
User#unfollow
withUsers::UnfollowService
Edited by Christina Lohr