Class: ButtonFileInput
- Inherits:
-
SimpleForm::Inputs::FileInput
- Object
- SimpleForm::Inputs::FileInput
- ButtonFileInput
- Defined in:
- lib/simple_form_custom_inputs/simple_form/button_file_input.rb
Instance Attribute Summary collapse
-
#output_buffer ⇒ Object
Returns the value of attribute output_buffer.
Instance Method Summary collapse
Instance Attribute Details
#output_buffer ⇒ Object
Returns the value of attribute output_buffer.
4 5 6 |
# File 'lib/simple_form_custom_inputs/simple_form/button_file_input.rb', line 4 def output_buffer @output_buffer end |
Instance Method Details
#input(wrapper_options = nil) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/simple_form_custom_inputs/simple_form/button_file_input.rb', line 6 def input( = nil) [:class] << 'hidden inputfile' = (, ) (@builder.file_field(attribute_name, ) + ).html_safe end |