I want to create and delete the user on a 3rd party service based on the below scenarios
create user on 3rd party
- when user is created in the application
- marked as
activefrominactive(i have a column on my User model calledis_active)
delete user on 3rd party
- when user is deleted from the application
- marked as
inactive
looks like I can make use of the after_commit callback, but how do I identify in the after_commit that action is create, update or delete
Any help on this will be helpful.