lib/hanami/model/plugins/timestamps.rb in hanami-model-0.7.0 vs lib/hanami/model/plugins/timestamps.rb in hanami-model-1.0.0.beta1

- old
+ new

@@ -61,11 +61,11 @@ protected # @since 0.7.0 # @api private def _touch(value, now) - value[:updated_at] = now + value[:updated_at] ||= now value end end # Sets <tt>created_at</tt> and <tt>updated_at</tt> timestamps for create commands @@ -77,10 +77,10 @@ # @since 0.7.0 # @api private def _touch(value, now) super - value[:created_at] = now + value[:created_at] ||= now value end end # Class interface