incrdecr_cached_counts 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 +4 -4
- data/.gitignore +1 -0
- data/lib/cached_counts/version.rb +1 -1
- data/lib/cached_counts.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ea050eb7e1f6d2a0602f70e955b55a84a203468
|
4
|
+
data.tar.gz: 6150a6c504e7ff131ab5d228e3dd61b48225b39b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6741a345bd6731333ff5766af136da3f5ad059bd34e50586798804130484de3c24248a025bf396b86831cc48e5860d9f8a4697d8fd9d5a0f3ec7ff061d63f344
|
7
|
+
data.tar.gz: b25da87c5368e38f0d6e167a38e2141789a3ef1c58aa528ad234b1008da25562e52b57111ef77302f66a9973258fdfe9e2ae95d116bf026da97e0d309149a857
|
data/.gitignore
CHANGED
data/lib/cached_counts.rb
CHANGED
@@ -298,7 +298,7 @@ module CachedCounts
|
|
298
298
|
counted_class.after_commit increment_hook, options.slice(:if).merge(on: :create)
|
299
299
|
|
300
300
|
# This is ridiculous, but I can't find a better way to test for it
|
301
|
-
need_without_protection = instance_method(:assign_attributes).arity
|
301
|
+
need_without_protection = instance_method(:assign_attributes).arity != 1
|
302
302
|
|
303
303
|
if (if_proc = options[:if])
|
304
304
|
if if_proc.is_a?(Symbol)
|