Sha256: 30710e133551d1fb1c72b5aab65f581fc137ffcff3e02c0990576cb8be1273a7

Contents?: true

Size: 529 Bytes

Versions: 2

Compression:

Stored size: 529 Bytes

Contents

# frozen_string_literal: true

module Yattho
  # :nocov:
  # :nodoc:
  module FormHelper
    def yattho_form_with(**kwargs, &block)
      form_with(**kwargs, skip_default_ids: false, builder: Yattho::Forms::Builder, &block)
    end

    def yattho_fields_for(record_name, record_object = nil, options = {}, &block)
      fields_for(
        record_name,
        record_object,
        options.merge(
          skip_default_ids: false,
          builder: Yattho::Forms::Builder
        ),
        &block
      )
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
yattho_view_components-0.1.1 app/helpers/yattho/form_helper.rb
yattho_view_components-0.0.1 app/helpers/yattho/form_helper.rb