delayed_after_commit 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/delayed_after_commit.rb +4 -2
- data/lib/delayed_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: fe884ac57847ecbbd9033dabd4970b30fbb7dad9
|
4
|
+
data.tar.gz: 8f61fc12eb6af16f1201c5732913e3193e0e293e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75ed837ffb31ead2cddd73175c13a33e4d4b04cac4f863316f186bf9a52080e612d08d976a7e2b28bc1b4167e8f13c21389750200d61446304f358c644432b64
|
7
|
+
data.tar.gz: 51d0a79822d46c85faaf1eb4f2e2d1272e509d61f4622c8178ad507d62c800e002f09701d5de89cb4244d50198ecbcd838330a44d185902870fbdb3cf032c93a
|
data/lib/delayed_after_commit.rb
CHANGED
@@ -13,12 +13,14 @@ module DelayedAfterCommit
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def delayed_after_create(*args, &block)
|
16
|
-
args
|
16
|
+
args[1] ||= {}
|
17
|
+
args[1][:on] = :create
|
17
18
|
delayed_after_commit(*args, &block)
|
18
19
|
end
|
19
20
|
|
20
21
|
def delayed_after_update(*args, &block)
|
21
|
-
args
|
22
|
+
args[1] ||= {}
|
23
|
+
args[1][:on] = :update
|
22
24
|
delayed_after_commit(*args, &block)
|
23
25
|
end
|
24
26
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delayed_after_commit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Rentzke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|