lib/hanami/model/plugins/timestamps.rb in hanami-model-1.1.0.beta3 vs lib/hanami/model/plugins/timestamps.rb in hanami-model-1.1.0.rc1
- 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