module ActiveRecord::Callbacks
def _create_record
def _create_record _run_create_callbacks { super } end
def _update_record
def _update_record _run_update_callbacks { super } end
def create_or_update(**)
def create_or_update(**) _run_save_callbacks { super } end
def destroy # :nodoc:
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
def increment!(attribute, by = 1, touch: nil) # :nodoc:
def increment!(attribute, by = 1, touch: nil) # :nodoc: touch ? _run_touch_callbacks { super } : super end
def touch(*, **) # :nodoc:
def touch(*, **) # :nodoc: _run_touch_callbacks { super } end