activerecord-cached_at 2.0.5 → 2.0.6

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: 7b3d64e5e2adb795b942f664462d24ed6ed4d7f2
4
- data.tar.gz: 95bef73c44b5dc5a34d066326a0f143e71a6aed1
3
+ metadata.gz: 9b337e6a81a89e040b93931c3b5b6149256e165b
4
+ data.tar.gz: 30ca746f43b88c5fe033bf379672548533c404f0
5
5
  SHA512:
6
- metadata.gz: a3cb5c3704956ee085247bbbf12f504feba96eed6604cdf73488055acbf71479d9e91e838433320a22ad14c1cd3b60fade816d7170809036814c7cf4bb60321b
7
- data.tar.gz: ae7d263524467b04d8d90687f392a2e7db39714282e73f9bd8b89ab69f0b245c9f72c02289d848ba6e523ab8d0ea5d8628b72b09419ea2a4019bd302ba1b121f
6
+ metadata.gz: 57af1b7560442a3c96e92ec0a7d586ce8459d9e202f64e26e7c15d5908a923abc2aa6a511c830565755dab92746f7e8c4a0a7da29e48e90a0a775b9cd038fddf
7
+ data.tar.gz: 1d6c1ed6214bcf774a099e138d1762dd6ec92a80425c35b7b59510bc8f859957f6a631068a2133f45952b696e1ace1be3eb71ed4a805ffa0a3547f319cd841e8
@@ -40,7 +40,7 @@ module CachedAt
40
40
  []
41
41
  else
42
42
  reflection.klass._reflections.values.select do |r|
43
- r.options[:cached_at] && r.options[:through] == reflection.inverse_of&.name
43
+ r.options[:cached_at] && r.options[:through] && r.options[:through] == reflection.inverse_of&.name
44
44
  end
45
45
  end
46
46
 
@@ -1,3 +1,3 @@
1
1
  module CachedAt
2
- VERSION = '2.0.5'
2
+ VERSION = '2.0.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-cached_at
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bracy