Module: Hanami::Model::Plugins::Mapping::ClassMethods Private

Defined in:
lib/hanami/model/plugins/mapping.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Class interface

Since:

  • 0.7.0

Instance Method Summary collapse

Instance Method Details

#build(relation, options = {}) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Builds the output processor

Since:

  • 0.7.0



41
42
43
44
# File 'lib/hanami/model/plugins/mapping.rb', line 41

def build(relation, options = {})
  wrapped_input = InputWithMapping.new(relation, options.fetch(:input) { input })
  super(relation, options.merge(input: wrapped_input))
end