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 (closed)
Implementation plan
- Create
app/services/users/unfollow_service.rb - Move the logic from
User#unfollowinto this service - Delete
User#unfollow - Replace usages of
User#unfollowwithUsers::UnfollowService
Edited by Christina Lohr