Sha256: 68070feef4adcdf169bc5c058565ea23993494c8ac039f3856c9d61fcd8a14b4
Contents?: true
Size: 630 Bytes
Versions: 54
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true module UiBibzInputs class BaseInput < SimpleForm::Inputs::Base include ActionView::Helpers::FormTagHelper def options super.merge({ value: @builder.object.send(attribute_name) }).merge(@builder.options[:input_html] || {}) end private def input_attribute_name # new_attribute_name = @builder.lookup_model_names.first.to_s # new_attribute_name += "[#{@builder.lookup_model_names.second}_attributes]" if @builder.lookup_model_names.second # new_attribute_name + "[#{attribute_name}]" "#{@builder.object_name}[#{attribute_name}]" end end end
Version data entries
54 entries across 54 versions & 1 rubygems