custom_counter_cache 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/custom_counter_cache/model.rb +1 -1
- data/lib/custom_counter_cache/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7714477f7fd065e02a9f87251350719498f140c9
|
4
|
+
data.tar.gz: e27ba6a73b69704e213665681f1139e32cc8705b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32847b6bb5c6deb88c485b2c6d3120192a4244087f9f1e24d6242373b5e23e4ebdf421d7fd76549ca4a62be50ff56a186aa2b0f2b242dcc974d2c007d3c0f7d2
|
7
|
+
data.tar.gz: 5f3776cb002ab64a1c19272035d827cb3abd5a443d1cd71b6af30c2ee79f140ea61255936304a8e2bea3aa7c4a8b7961365fba28ae5801359dbba4b08a6ff0c5
|
@@ -46,7 +46,7 @@ module CustomCounterCache::Model
|
|
46
46
|
|
47
47
|
association = association.to_sym
|
48
48
|
cache_column = cache_column.to_sym
|
49
|
-
method_name = "callback_#{cache_column}".to_sym
|
49
|
+
method_name = "callback_#{association}_#{cache_column}".to_sym
|
50
50
|
reflection = reflect_on_association(association)
|
51
51
|
foreign_key = reflection.try(:foreign_key) || reflection.association_foreign_key
|
52
52
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: custom_counter_cache
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cedric Howe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|