instance method
before_destroy
Ruby on Rails 8.1.2
Since v6.1.7.10Signature
before_destroy(*args, &block)
Registers a callback to be called before a record is destroyed. See ActiveRecord::Callbacks for more information.
Source
# File activerecord/lib/active_record/callbacks.rb, line 388
Defined in activerecord/lib/active_record/callbacks.rb line 388
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Callbacks::ClassMethods