Class: Gexp::Mongoid::Transaction::Observer
- Inherits:
-
Object
- Object
- Gexp::Mongoid::Transaction::Observer
- Defined in:
- lib/gexp/mongoid/transaction.rb
Overview
TODO: Переделать на контекст
Class Method Summary collapse
- .finish_transaction! ⇒ Object
- .runned ⇒ Object
- .start_transaction!(transaction) ⇒ Object
- .started? ⇒ Boolean
Class Method Details
.finish_transaction! ⇒ Object
31 32 33 |
# File 'lib/gexp/mongoid/transaction.rb', line 31 def finish_transaction! @runned = false end |
.runned ⇒ Object
19 20 21 |
# File 'lib/gexp/mongoid/transaction.rb', line 19 def runned @runned end |
.start_transaction!(transaction) ⇒ Object
27 28 29 |
# File 'lib/gexp/mongoid/transaction.rb', line 27 def start_transaction!(transaction) @runned = transaction end |
.started? ⇒ Boolean
23 24 25 |
# File 'lib/gexp/mongoid/transaction.rb', line 23 def started? @runned ||= false end |