Sha256: 56fd922be0bc4486a809f72791949b0cb9068ac95bdb6db0d2e27096783cee44
Contents?: true
Size: 325 Bytes
Versions: 2
Compression:
Stored size: 325 Bytes
Contents
# frozen_string_literal: true module Yattho module Forms # :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 |
---|---|
yattho_view_components-0.1.1 | lib/yattho/forms/form_reference.rb |
yattho_view_components-0.0.1 | lib/yattho/forms/form_reference.rb |