after_commit 1.0.9 → 1.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +1 -0
- data/lib/after_commit/connection_adapters.rb +2 -2
- metadata +2 -2
data/README.textile
CHANGED
@@ -64,3 +64,4 @@ This version (maintained by Pat Allan) includes the following patches:
|
|
64
64
|
* Only tracking objects from classes that have appropriate callbacks; Adding @after/before_commit_on_save@ to cover creates and updates but not destroys ("Jason Weathered":http://jasoncodes.com/)
|
65
65
|
* Fixing up exception handling and savepoints in the test helper, and cleaning up successful transactions correctly ("Identified":https://github.com/Identified).
|
66
66
|
* Improved JRuby support ("Kevin Menard":https://github.com/nirvdrum)
|
67
|
+
* Stop transaction failures in tests ("Ochko":http://ochko.blogspot.com/)
|
@@ -3,7 +3,7 @@ module AfterCommit
|
|
3
3
|
def self.included(base)
|
4
4
|
base.class_eval do
|
5
5
|
|
6
|
-
if
|
6
|
+
if method_defined?(:transaction)
|
7
7
|
def transaction_with_callback(*args, &block)
|
8
8
|
# @disable_rollback is set to false at the start of the
|
9
9
|
# outermost call to #transaction. After committing, it is
|
@@ -17,7 +17,7 @@ module AfterCommit
|
|
17
17
|
end
|
18
18
|
alias_method_chain :transaction, :callback
|
19
19
|
|
20
|
-
elsif
|
20
|
+
elsif method_defined?(:begin_db_transaction)
|
21
21
|
def begin_db_transaction_with_callback(*args, &block)
|
22
22
|
# @disable_rollback is set to false at the start of the
|
23
23
|
# outermost call to #transaction. After committing, it is
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: after_commit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.10
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Nick Muerdter
|
@@ -12,7 +12,7 @@ autorequire:
|
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
14
|
|
15
|
-
date: 2011-06-
|
15
|
+
date: 2011-06-23 00:00:00 +10:00
|
16
16
|
default_executable:
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|