Module: Hanami::Model::Plugins::Schema::ClassMethods Private

Defined in:
lib/hanami/model/plugins/schema.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 input processor

Since:

  • 0.7.0


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

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