Is called before Base.destroy.
Note: If you need to destroy or nullify associated records first, use the :dependent option on your associations.
Source Code
# File active_record/callbacks.rb, line 286 def before_destroy() end
Is called before Base.destroy.
Note: If you need to destroy or nullify associated records first, use the :dependent option on your associations.
# File active_record/callbacks.rb, line 286 def before_destroy() end
<code/>and<pre/>for code samples.