counter_cache_update 0.0.2 → 0.0.3

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: e18c0b845004265f25e0097b2cbcf66f7bd48234
4
- data.tar.gz: 2b1e8e694f0a5cbeff607caa6b1fc4d106c47c8a
3
+ metadata.gz: 5a21fc1b22472205f939ea1c6518e5aacd6bb128
4
+ data.tar.gz: dd2e5334684f63c5d985779ef5223f4eccb1bdb5
5
5
  SHA512:
6
- metadata.gz: cba8e52e666a8b0253710fd68e1aac2b8b6b51c294b25e8516e702baac32f416a2dde771084d6938b27728f5bf74f0c48f3c28ccd1090256b9579a50b0202a12
7
- data.tar.gz: 1888e5de0c5a12eca58763eb36bdde8c5d89985680d50fb51059c725dc17a7ef6f25ca89939992e7c07aff95d9c235e6c6af300a2752bee948ddaa517aae34d0
6
+ metadata.gz: 56a49fa503c5e5405de2da18ed7e5f8ad0bc9217f8c27a5b91097857cb9733d78052becf25c30f5a740464cf6f54a5119394263a9ea96b95d919f3dac093baf1
7
+ data.tar.gz: 759891b5030e227a1038d4d9d105335031d10580efb23146b562b9895df65681f7f4060bbc10fc45b4eeebfb779d095ed0f3169f43e42449371ad8d948f27fc2
@@ -26,6 +26,7 @@ private
26
26
  model_class.reflections.each do |_name, reflection|
27
27
  next unless reflection.macro.to_sym == :belongs_to
28
28
  next unless reflection.options[:counter_cache]
29
+ next if reflection.options[:polymorphic]
29
30
  CounterCacheUpdate::TableUpdatorService.execute!(reflection: reflection)
30
31
  end
31
32
  end
@@ -1,3 +1,3 @@
1
1
  module CounterCacheUpdate
2
- VERSION = "0.0.2".freeze
2
+ VERSION = "0.0.3".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: counter_cache_update
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaspernj