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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5df4be9819e4564b080faeb3288b16b49a53e476
4
- data.tar.gz: f35ffa1709c0121436a1c1506dd3112cb0ead1ca
3
+ metadata.gz: fe884ac57847ecbbd9033dabd4970b30fbb7dad9
4
+ data.tar.gz: 8f61fc12eb6af16f1201c5732913e3193e0e293e
5
5
  SHA512:
6
- metadata.gz: 7adbc03b4a60e32220d308634dface75b156a88b3ff290b2a255a1edcafa928cd6fe9930f1f4adff73a9da9f42b77121a2b11f385bf61e15703d3756e13514a2
7
- data.tar.gz: a25240494c8f59a1e5366d1b6c29e1e2d96e26b7f626170c6a39e6628d1f4da1feb6b7994b1a9f758d0b2479551bdbb81d6ae7259ae0b7003582a5c86df487d6
6
+ metadata.gz: 75ed837ffb31ead2cddd73175c13a33e4d4b04cac4f863316f186bf9a52080e612d08d976a7e2b28bc1b4167e8f13c21389750200d61446304f358c644432b64
7
+ data.tar.gz: 51d0a79822d46c85faaf1eb4f2e2d1272e509d61f4622c8178ad507d62c800e002f09701d5de89cb4244d50198ecbcd838330a44d185902870fbdb3cf032c93a
@@ -13,12 +13,14 @@ module DelayedAfterCommit
13
13
  end
14
14
 
15
15
  def delayed_after_create(*args, &block)
16
- args << {on: :create}
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 << {on: :update}
22
+ args[1] ||= {}
23
+ args[1][:on] = :update
22
24
  delayed_after_commit(*args, &block)
23
25
  end
24
26
 
@@ -1,3 +1,3 @@
1
1
  module DelayedAfterCommit
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
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.5
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-10-26 00:00:00.000000000 Z
11
+ date: 2016-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord