Sha256: 2d7c68a14ad8866ddca27e655a75b0ea1d59da3ddbe84de1100c40bace89b3e1

Contents?: true

Size: 392 Bytes

Versions: 2

Compression:

Stored size: 392 Bytes

Contents

# frozen_string_literal: true

module Ariadne
  module Form
    # :nodoc:
    module FormReference
      class Component < Ariadne::Form::BaseInputComponent
        delegate :builder, :form, to: :@input

        def initialize(input:)
          @input = input
        end

        def builder_or_view
          @input.nested? ? builder : @view_context
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ariadne_view_components-0.0.67 app/components/ariadne/form/form_reference/component.rb
ariadne_view_components-0.0.66 app/components/ariadne/form/form_reference/component.rb