Class: Gexp::Mongoid::Transaction::Observer

Inherits:
Object
  • Object
show all
Defined in:
lib/gexp/mongoid/transaction.rb

Overview

TODO: Переделать на контекст

Class Method Summary collapse

Class Method Details

.finish_transaction!Object



31
32
33
# File 'lib/gexp/mongoid/transaction.rb', line 31

def finish_transaction!
  @runned = false
end

.runnedObject



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

Returns:

  • (Boolean)


23
24
25
# File 'lib/gexp/mongoid/transaction.rb', line 23

def started?
  @runned ||= false
end