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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0df4c855c8d546d5ec7f81e536e317b1d222d53
4
- data.tar.gz: 16859fbe11a54eb4aabdf53aadc9709e8355a8a7
3
+ metadata.gz: 7714477f7fd065e02a9f87251350719498f140c9
4
+ data.tar.gz: e27ba6a73b69704e213665681f1139e32cc8705b
5
5
  SHA512:
6
- metadata.gz: 6797bf2591cd0d5926a3f6bb2021f14929ef6f52aac6771caff65093639983439136caf3c499887328744c796b57c43fa431d59d455bbad693613510004dd974
7
- data.tar.gz: 91bdf24d3740327dce1cc354b4bf34e36421a19dcd83f832309109e7671a36e696ddcb7acbec7c0a12d6dce625a4d35e31adf799ce5511340ee8e757eb7b475a
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
 
@@ -1,5 +1,5 @@
1
1
  module CustomCounterCache
2
2
 
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
 
5
5
  end
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.0
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-05-02 00:00:00.000000000 Z
11
+ date: 2017-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails