after_commit 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -154,10 +154,12 @@ module AfterCommit
154
154
  end
155
155
 
156
156
  def increment_transaction_pointer
157
+ Thread.current[:after_commit_pointer] ||= 0
157
158
  Thread.current[:after_commit_pointer] += 1
158
159
  end
159
160
 
160
161
  def decrement_transaction_pointer
162
+ Thread.current[:after_commit_pointer] ||= 0
161
163
  Thread.current[:after_commit_pointer] -= 1
162
164
  end
163
165
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: after_commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Muerdter
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2009-11-25 00:00:00 +11:00
14
+ date: 2009-11-26 00:00:00 +11:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency