Method: Spider::Model::Storage::BaseStorage#commit
- Defined in:
- lib/spiderfw/model/storage/base_storage.rb
#commit ⇒ bool
Commits the current transaction
312 313 314 315 316 317 |
# File 'lib/spiderfw/model/storage/base_storage.rb', line 312 def commit return false unless transactions_enabled? raise StorageException, "Commit without a transaction" unless in_transaction? return curr[:savepoints].pop unless curr[:savepoints].empty? commit! end |