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