Sabo
09/27/2022, 5:04 PMsolidus_auth_devise/app/models/spree/*user.rb*
I know how to add or update functions (https://guides.solidus.io/developers/customizations/decorators) but how to remove some code like def function or call function ?Naoki Mi
09/28/2022, 12:34 AMnil
(or something else that won't break the code)
as for the second part AFAIK you would have to rewrite the whole method without that one or more lineswaiting_for_dev
09/28/2022, 3:33 AMundef
& remove_method
(they act differently: https://gist.github.com/chrisjpowers/988774), but you probably still need them to be called, so a void definition will probably be the best option.waiting_for_dev
09/28/2022, 3:33 AMSabo
09/28/2022, 8:42 AMSabo
09/28/2022, 8:46 AMafter_destroy :scramble_email_and_password
(line 21) in https://github.com/solidusio/solidus_auth_devise/blob/master/app/models/spree/user.rbwaiting_for_dev
09/28/2022, 9:36 AM:skip_callback
https://devdocs.io/rails~7.0/activesupport/callbacks/classmethods#method-i-skip_callbackSabo
09/28/2022, 9:53 AM