Class: AdminPreviewableFileInput

Inherits:
SimpleForm::Inputs::FileInput
  • Object
show all
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(wrapper_options)
  template.image_tag(object.send(attribute_name).url(:thumb), class: 'previewable') + super
end

#input_html_classesObject



6
7
8
# File 'app/inputs/admin_previewable_file_input.rb', line 6

def input_html_classes
  super.push('previewable')
end