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



39
40
41
42
# File 'lib/hanami/model/plugins/mapping.rb', line 39

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