lib/hanami/model/plugins/timestamps.rb in hanami-model-1.3.0.beta1 vs lib/hanami/model/plugins/timestamps.rb in hanami-model-1.3.0
- old
+ new
@@ -30,9 +30,10 @@
#
# @since 0.7.0
# @api private
def [](value)
return @input[value] unless timestamps?
+
_touch(@input[value], Time.now)
end
protected