Class: Forms::Plain::FileInput

Inherits:
FileInput
  • Object
show all
Defined in:
lib/forms/plain/file_input.rb

Overview

Bare .

Instance Method Summary collapse

Instance Method Details

#view_templateObject



7
8
9
10
11
# File 'lib/forms/plain/file_input.rb', line 7

def view_template
  attrs = unstyled_attributes(accept: @accept)
  attrs[:multiple] = true if @multiple
  input(type: "file", **attrs)
end