Ends the current PStore#transaction, discarding any changes to the data store.
store[:one] = 1 # this change is not applied, see below... store[:two] = 2 # this change is not applied, see below... store.abort # end transaction here, discard all changes store[:three] = 3 # this change is never reached
WARNING: This method is only valid in a PStore#transaction. It will raise PStore::Error if called at any other time.
# File lib/pstore.rb, line 290 def abort in_transaction @abort = true throw :pstore_abort_transaction end