Class: ViewComponent::Form::FileFieldComponent
- Inherits:
-
FieldComponent
- Object
- BaseComponent
- FieldComponent
- ViewComponent::Form::FileFieldComponent
- Defined in:
- app/components/view_component/form/file_field_component.rb
Instance Attribute Summary
Attributes inherited from FieldComponent
Attributes inherited from BaseComponent
Instance Method Summary collapse
Methods inherited from FieldComponent
#call, #initialize, #label_text, #method_errors, #method_errors?, #object_method_names, #optional?, #required?, #validators, #value
Methods inherited from BaseComponent
#html_class, #initialize, #object_errors, #object_errors?
Constructor Details
This class inherits a constructor from ViewComponent::Form::FieldComponent
Instance Method Details
#before_render ⇒ Object
8 9 10 11 12 13 |
# File 'app/components/view_component/form/file_field_component.rb', line 8 def before_render @options = { include_hidden: multiple_file_field_include_hidden }.merge!() @options = convert_direct_upload_option_to_url(@options.dup) super end |