lib/hanami/model/plugins/mapping.rb in hanami-model-1.1.0.beta3 vs lib/hanami/model/plugins/mapping.rb in hanami-model-1.1.0.rc1
- old
+ new
@@ -21,10 +21,10 @@
# Processes the output
#
# @since 0.7.0
# @api private
def [](value)
- @mapping.process(@input[value])
+ @input[@mapping.process(value)]
end
end
# Class interface
#