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: c944625f820a1fd4c98715aa2af18eb54ad5708d
4
- data.tar.gz: 889eaaea7e8570f0592b5ed3a8b425500fcd3dc1
3
+ metadata.gz: 8b2ffc9cf442af988e5a637100e8e7cef7380511
4
+ data.tar.gz: 8372a8d499f379fb2534884e0c47535df8f21cd2
5
5
  SHA512:
6
- metadata.gz: efb9b7492a446c2c87891e51ac1b8ec76dbb6ead44d8a05af904b9255090b496ddda5e85915290316e0da79b092f3a661170e37fd44a2e4685295246ba777292
7
- data.tar.gz: dc3c1b66c05035120b061ae730cf29ef20e92a6262671b92955603e9612ec16fe200896d321d1d1c537a3619f9e304a5ccce27ee729fd08420d1a0caf27be8f4
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
@@ -1,3 +1,3 @@
1
1
  module CachedAt
2
- VERSION = '2.0.9'
2
+ VERSION = '2.0.10'
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.9
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bracy