Methods
- A
- C
- F
- N
- R
- S
Class Public methods
new(state = nil)
Link
Instance Public methods
add_child(state)
Link
commit!()
Link
committed?()
Link
completed?()
Link
finalized?()
Link
full_commit!()
Link
full_rollback!()
Link
fully_committed?()
Link
fully_completed?()
Link
fully_rolledback?()
Link
nullify!()
Link
rollback!()
Link
rolledback?()
Link
set_state(state)
Link
# File activerecord/lib/active_record/connection_adapters/abstract/transaction.rb, line 43 def set_state(state) ActiveSupport::Deprecation.warn(<<-MSG.squish) The set_state method is deprecated and will be removed in Rails 6.0. Please use rollback! or commit! to set transaction state directly. MSG case state when :rolledback rollback! when :committed commit! when nil nullify! else raise ArgumentError, "Invalid transaction state: #{state}" end end