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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a21fc1b22472205f939ea1c6518e5aacd6bb128
|
4
|
+
data.tar.gz: dd2e5334684f63c5d985779ef5223f4eccb1bdb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|