test_after_commit 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/test_after_commit.rb +4 -3
- data/lib/test_after_commit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 061f60c5c03507e7bb1443834af63bb40ee4674c
|
4
|
+
data.tar.gz: d70be83e48b77da840d0c7bbc73d510bdb00bda1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2fb8d811bddd3d4383c96eb61ee769e1d56c1989548c0f1c4b6348ce90b56688bfe1d9fc659c2135e999c78a7940a60fd7d947164ff06765427e184b1a3b75f4
|
7
|
+
data.tar.gz: bd1c16a880e3ad107f483532d81f86df217ce61192eaaf5bde653b92ea81579e05d1b36fb7a90331e6eb2896f7076af8b3f21235c2bb4cff0cfe43484a23d543
|
data/lib/test_after_commit.rb
CHANGED
@@ -28,9 +28,10 @@ ActiveRecord::ConnectionAdapters::DatabaseStatements.class_eval do
|
|
28
28
|
if ActiveRecord::VERSION::MAJOR == 3
|
29
29
|
commit_transaction_records(false)
|
30
30
|
else
|
31
|
-
@transaction.
|
32
|
-
|
33
|
-
|
31
|
+
transaction = @transaction || @transaction_manager.current_transaction
|
32
|
+
transaction.commit_records
|
33
|
+
transaction.records.clear # prevent duplicate .commit!
|
34
|
+
transaction.instance_variable_get(:@state).set_state(nil)
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: test_after_commit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|