lib/cassandra_object/timestamps.rb in extendi-cassandra_object-1.0.17 vs lib/cassandra_object/timestamps.rb in extendi-cassandra_object-1.0.18

- old
+ new

@@ -13,10 +13,14 @@ end end before_update if: :changed? do if self.class.timestamps - self.updated_at = Time.current + if store_updated_at.present? + self.updated_at = store_updated_at + else + self.updated_at = Time.current + end end end end end end