activerecord-cached_at 2.0.10 → 2.0.11
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: 5860c53030bc1c81930921e85181a18d967350a3
|
4
|
+
data.tar.gz: c4e1b6c432bd192b59f5dbe305f372e9c5f3f112
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19894074ae6826f70a9498ea336427f6f9473225a6be2e9980f259d1674e50e2cb8521ec978a5686f0959c235ce9fcfef0375ea1fc99dfe66cb409ef989f0461
|
7
|
+
data.tar.gz: 74dcc58f9a1181981e44a3bb75f4ed269bd9027ef08292d5614184c5155dea9a7139d173018d979f44e9e66b503acf94ba71b398d93ae7c91d1532b4205ce507
|
@@ -32,11 +32,11 @@ module CachedAt
|
|
32
32
|
traverse_relationships(klass, options[:cached_at], query, cache_column, timestamp)
|
33
33
|
end
|
34
34
|
|
35
|
-
|
35
|
+
#TODO: test with new record (fails in mls)
|
36
|
+
if !owner.new_record? && using_reflection.inverse_of && using_reflection.inverse_of.options[:cached_at]
|
36
37
|
cache_column = "#{using_reflection.name}_cached_at"
|
37
|
-
owner.raw_write_attribute(cache_column, timestamp)
|
38
|
-
|
39
|
-
owner.update_columns(cache_column => timestamp) unless owner.new_record?
|
38
|
+
owner.raw_write_attribute(cache_column, timestamp)
|
39
|
+
owner.update_columns(cache_column => timestamp)
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
data/lib/cached_at/version.rb
CHANGED