method
before_destroy
v7.0.0 -
Show latest stable
- Class:
ActiveRecord::Callbacks::ClassMethods
before_destroypublic
Registers a callback to be called before a record is destroyed. See ActiveRecord::Callbacks for more information.
before_destroyRegisters a callback to be called before a record is destroyed. See ActiveRecord::Callbacks for more information.