Module: Sinatra::SequelTransaction::Helpers

Defined in:
lib/sinatra/sequel_transaction.rb

Instance Method Summary collapse

Instance Method Details

#commit_transactionObject

commit manually before return from the request block



17
18
19
20
# File 'lib/sinatra/sequel_transaction.rb', line 17

def commit_transaction
  db = Sequel::DATABASES.first
  db << db.__send__(:commit_transaction_sql)
end