lib/hanami/model/plugins/timestamps.rb in hanami-model-1.0.3 vs lib/hanami/model/plugins/timestamps.rb in hanami-model-1.0.4

- old
+ new

@@ -29,10 +29,10 @@ # Processes the input # # @since 0.7.0 # @api private def [](value) - return value unless timestamps? + return @input[value] unless timestamps? _touch(@input[value], Time.now) end protected