lib/granite/action/transaction_manager.rb
def transaction(&block)
          run_in_transaction(&block) || false
        ensure
          finish_root_transaction if transactions_stack.depth.zero?
        end
# Runs a block in a transaction
# It will open a new transaction or append a block to the current one if it exists
# @return [Object] result of a block
Runs a block in a transaction
It will open a new transaction or append a block to the current one if it exists
Runs a block in a transaction It will open a new transaction or append a block to the current one if it exists
def transaction(&block)
          run_in_transaction(&block) || false
        ensure
          finish_root_transaction if transactions_stack.depth.zero?
        end
def transaction ( & block ) run_in_transaction ( & block ) || false ensure finish_root_transaction if transactions_stack . depth . zero? end
Runs a block in a transaction
It will open a new transaction or append a block to the current one if it exists
Runs a block in a transaction It will open a new transaction or append a block to the current one if it exists
result of a block
result of a block
Object
block