end_transaction function is used to end a transaction. This will be used along with “start_transaction”.

Compatibility

  • Rails 4.2 and above.
  • Sinatra 1.0 and above.

Syntax

Parameter

end_transaction() does not accept any parameters.

Example

See also