lib/hanami/model/plugins/schema.rb in hanami-model-1.0.0 vs lib/hanami/model/plugins/schema.rb in hanami-model-1.0.1

- old
+ new

@@ -35,11 +35,11 @@ # Builds the input processor # # @since 0.7.0 # @api private def build(relation, options = {}) - input(InputWithSchema.new(relation, input)) - super(relation, options.merge(input: input)) + wrapped_input = InputWithSchema.new(relation, options.fetch(:input) { input }) + super(relation, options.merge(input: wrapped_input)) end end # @since 0.7.0 # @api private