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: db52a9781aef2816fbd61977be020afad8e25a9b
4
- data.tar.gz: 1b20acad3adacdb68b1920aaaa90b82b8166dc88
3
+ metadata.gz: c944625f820a1fd4c98715aa2af18eb54ad5708d
4
+ data.tar.gz: 889eaaea7e8570f0592b5ed3a8b425500fcd3dc1
5
5
  SHA512:
6
- metadata.gz: ecdd3baaf3d1c04e795468f8cf8b6517b22f777892ee9dcdec9299202a3f41d9e579d96494deb92a56def115d9aac802239e87a203b8fba79a50e64a3a63914b
7
- data.tar.gz: 32a7e4324a8136d5d29831856dc5041a2c47f0ffb0d5c9c03f5caadc50f526d40948e6f36f9871b6f1bad496e83a70c7a96757d4bdc33d130a043efcd269eca6
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
- owner.update_columns(cache_column => timestamp)
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
 
@@ -1,3 +1,3 @@
1
1
  module CachedAt
2
- VERSION = '2.0.8'
2
+ VERSION = '2.0.9'
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.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bracy