Sha256: 1214df2af1e4f3c038e0f89bed4ce4f334b420cfe2e489eeb7162a4bec16505a
Contents?: true
Size: 325 Bytes
Versions: 2
Compression:
Stored size: 325 Bytes
Contents
# frozen_string_literal: true module Ariadne module Form # :nodoc: class FormReference < BaseComponent delegate :builder, :form, to: :@input def initialize(input:) @input = input end def builder_or_view @input.nested? ? builder : @view_context end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ariadne_view_components-0.0.65 | app/components/ariadne/form/form_reference/component.rb |
ariadne_view_components-0.0.64 | app/components/ariadne/form/form_reference/component.rb |