Class: AdminPreviewableFileInput
- Inherits:
-
SimpleForm::Inputs::FileInput
- Object
- SimpleForm::Inputs::FileInput
- AdminPreviewableFileInput
- Defined in:
- app/inputs/admin_previewable_file_input.rb
Instance Method Summary collapse
Instance Method Details
#input(wrapper_options) ⇒ Object
2 3 4 |
# File 'app/inputs/admin_previewable_file_input.rb', line 2 def input() template.image_tag(object.send(attribute_name).url(:thumb), class: 'previewable') + super end |
#input_html_classes ⇒ Object
6 7 8 |
# File 'app/inputs/admin_previewable_file_input.rb', line 6 def input_html_classes super.push('previewable') end |