Method: Satis::Forms::Builder#input_array

Defined in:
lib/satis/forms/builder.rb

#input_array(method, options = {}) ⇒ Object



307
308
309
310
311
312
313
314
# File 'lib/satis/forms/builder.rb', line 307

def input_array(method, options = {})
  form_group(method, options) do
    safe_join [
      (custom_label(method, options[:label], options) unless options[:label] == false),
      render(Satis::InputArray::Component.new(form: self, attribute: method, **options))
    ]
  end
end