Class: MultifileInput

Inherits:
SimpleForm::Inputs::CollectionInput
  • Object
show all
Defined in:
app/inputs/multifile_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options = nil) ⇒ Object



3
4
5
6
7
8
# File 'app/inputs/multifile_input.rb', line 3

def input(wrapper_options = nil)
  merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)

  merged_input_options[:name] = "#{@builder.object_name}[#{attribute_name}][]"
  @builder.file_field(attribute_name, merged_input_options)
end