Closed walbertus closed 4 years ago
When a user is removed from the group using method delete_all, it will skip the callback method (https://guides.rubyonrails.org/active_record_callbacks.html#skipping-callbacks). Paper trail only created when the callback is called, this is why the delete_all method will not create a paper trail record.
When a user is removed from the group using method delete_all, it will skip the callback method (https://guides.rubyonrails.org/active_record_callbacks.html#skipping-callbacks). Paper trail only created when the callback is called, this is why the delete_all method will not create a paper trail record.