Module: TestAfterCommit

Defined in:
lib/test_after_commit/with_transaction_state.rb,
lib/test_after_commit.rb,
lib/test_after_commit/version.rb

Overview

disable parts of the sync code that starts looping

Defined Under Namespace

Modules: DatabaseStatements, WithTransactionState

Constant Summary collapse

VERSION =
'1.2.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.enabledObject

Returns the value of attribute enabled.



18
19
20
# File 'lib/test_after_commit.rb', line 18

def enabled
  @enabled
end

Class Method Details

.with_commits(value = true) ⇒ Object



20
21
22
23
24
25
26
# File 'lib/test_after_commit.rb', line 20

def with_commits(value = true)
  old = enabled
  self.enabled = value
  yield
ensure
  self.enabled = old
end