Class: Form::FileUploadComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Form::FileUploadComponent
- Defined in:
- lib/generators/infold/install/templates/app/components/admin/form/file_upload_component.rb
Instance Method Summary collapse
-
#initialize(form, field, label: true, required: false) ⇒ FileUploadComponent
constructor
A new instance of FileUploadComponent.
Constructor Details
#initialize(form, field, label: true, required: false) ⇒ FileUploadComponent
Returns a new instance of FileUploadComponent.
5 6 7 8 9 10 |
# File 'lib/generators/infold/install/templates/app/components/admin/form/file_upload_component.rb', line 5 def initialize(form,field,label: true, required: false) @form = form @field = field @label = label @required = required end |