Class: FileInput
- Inherits:
-
SimpleForm::Inputs::FileInput
- Object
- SimpleForm::Inputs::FileInput
- FileInput
- Defined in:
- app/inputs/file_input.rb
Instance Method Summary collapse
Instance Method Details
#input(wrapper_options = nil) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/inputs/file_input.rb', line 4 def input( = nil) = (, ) = .extract!(:accept, :capture, :multiple) template.content_tag(:div, **stimulus_configuration) do template.concat(()) template.concat(build_filename_display) template.concat(build_hidden_file_field()) end end |