stream_rails 2.6.3 → 2.6.4

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
  SHA256:
3
- metadata.gz: 5d0a379f76089c58915b3ebc1edac5f0a4449e252777657416730afc6a038ff1
4
- data.tar.gz: 49159519ecb2e0cf64f7d560a137b7dcbc4763fcf695d427e1ef54c7575b8a8a
3
+ metadata.gz: 377b89cf80c565ae9ffad3d5a91f4179af15e41ebcbf244e6d793fda2fa2ac64
4
+ data.tar.gz: fbc695b7236b8d0b4c88a460bd36bbd711de3427364d849b028b2a880ba8944d
5
5
  SHA512:
6
- metadata.gz: 8b76d7f2897420acb577de00e7d357093eabadf79af44aaddc3f0a2605104592e5f8c1b9f392146831c5ec7399aaf34ce881092e5f66364dadb5a015eec8a6ba
7
- data.tar.gz: 1f91b9f0c3bfb95f5023073fd9e29356abca322a8914a06e1ae6ad5b0bb269d39c8db29624f00acec21bde1027263bae5a91e20616fcc1d4d614174fd2b16b08
6
+ metadata.gz: a77c57b7b549b918709047e15283866d3f5c77d00f3911f6b160d89c29d52ae3cfcb1ae3650219bb5c85159549e8197345d34041a387eb170a0e8b496f67f390
7
+ data.tar.gz: b4e11ac815abb93c49ce00e10697eef65c6bd9dd88aa663da0fed97c129bfeba2318eec5d6ac00a2e4b87367d500e1d597bb15c3966337613c6f3021f1c0b2b1
@@ -28,8 +28,8 @@ module StreamRails
28
28
 
29
29
  module SyncDestroy
30
30
  def self.included(base)
31
- if base.respond_to? :after_commit
32
- base.after_commit :remove_from_feed, on: :destroy
31
+ if base.respond_to? :before_destroy
32
+ base.before_destroy :remove_from_feed
33
33
  elsif Object.const_defined?('Sequel') && base < Sequel::Model
34
34
  base.instance_eval do
35
35
  define_method(:before_destroy) do |*args|
@@ -1,3 +1,3 @@
1
1
  module StreamRails
2
- VERSION = '2.6.3'.freeze
2
+ VERSION = '2.6.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stream_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.3
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tommaso Barbugli
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2018-05-15 00:00:00.000000000 Z
13
+ date: 2018-08-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: actionpack