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 =
'0.5.1'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.enabledObject

Returns the value of attribute enabled


14
15
16
# File 'lib/test_after_commit.rb', line 14

def enabled
  @enabled
end

Class Method Details

.with_commits(value = true) ⇒ Object


16
17
18
19
20
21
22
# File 'lib/test_after_commit.rb', line 16

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