Method: ActiveRecord::Transactions#trigger_transactional_callbacks?

Defined in:
lib/active_record/transactions.rb

#trigger_transactional_callbacks?Boolean

:nodoc:

Returns:

  • (Boolean)


360
361
362
363
# File 'lib/active_record/transactions.rb', line 360

def trigger_transactional_callbacks? # :nodoc:
  (@_new_record_before_last_commit || _trigger_update_callback) && persisted? ||
    _trigger_destroy_callback && destroyed?
end