activerecord-cached_at 2.0.9 → 2.0.10
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: 8b2ffc9cf442af988e5a637100e8e7cef7380511
|
4
|
+
data.tar.gz: 8372a8d499f379fb2534884e0c47535df8f21cd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a3baf4dd23c1bb39d567e6507e302f087fe37e2041d27636c0c8b466b29143d9b96fa7ac95bf625f3d7e9ad4e86952b508c3405413db2f5f2e86fb88d6b4d38
|
7
|
+
data.tar.gz: 2e75b8567f7ee8a5b4287b3f3dd6de0cba9c5660a1c844a576ab4fdbd2552150690dc1d2811d43356345bb6f24fb1ae79079fe528ee2ca4f4358f3cbe4ef778c
|
@@ -34,7 +34,7 @@ module CachedAt
|
|
34
34
|
|
35
35
|
if using_reflection.inverse_of && using_reflection.inverse_of.options[:cached_at]
|
36
36
|
cache_column = "#{using_reflection.name}_cached_at"
|
37
|
-
owner.raw_write_attribute(cache_column, timestamp)
|
37
|
+
owner.raw_write_attribute(cache_column, timestamp) unless timestamp.nil?
|
38
38
|
#TODO: test with new record (fails in mls)
|
39
39
|
owner.update_columns(cache_column => timestamp) unless owner.new_record?
|
40
40
|
end
|
data/lib/cached_at/version.rb
CHANGED