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
Instance Method Summary collapse
-
#build(relation, options = {}) ⇒ Object
private
Builds the input processor.
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
41 42 43 44 |
# File 'lib/hanami/model/plugins/schema.rb', line 41 def build(relation, = {}) wrapped_input = InputWithSchema.new(relation, .fetch(:input) { input }) super(relation, .merge(input: wrapped_input)) end |