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