method
destroy
v5.2.3 -
Show latest stable
- Class:
ActiveRecord::Callbacks
destroy()public
No documentation available.
# File activerecord/lib/active_record/callbacks.rb, line 319
def destroy #:nodoc:
@_destroy_callback_already_called ||= false
return if @_destroy_callback_already_called
@_destroy_callback_already_called = true
_run_destroy_callbacks { super }
rescue RecordNotDestroyed => e
@_association_destroy_exception = e
false
ensure
@_destroy_callback_already_called = false
end