Module: TestAfterCommit
- Defined in:
- lib/test_after_commit.rb,
lib/test_after_commit/version.rb
Constant Summary collapse
- VERSION =
'0.4.2'
Class Attribute Summary collapse
-
.enabled ⇒ Object
Returns the value of attribute enabled.
Class Method Summary collapse
Class Attribute Details
.enabled ⇒ Object
Returns the value of attribute enabled.
6 7 8 |
# File 'lib/test_after_commit.rb', line 6 def enabled @enabled end |
Class Method Details
.with_commits(value = true) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/test_after_commit.rb', line 8 def with_commits(value = true) old = enabled self.enabled = value yield ensure self.enabled = old end |