Class: SimpleForm::Inputs::AttachmentInput

Inherits:
Base
  • Object
show all
Defined in:
lib/refile/simple_form.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options = nil) ⇒ Object



6
7
8
9
10
# File 'lib/refile/simple_form.rb', line 6

def input(wrapper_options = nil)
  refile_options = [:presigned, :direct, :multiple]
  merged_input_options = merge_wrapper_options(input_options.slice(*refile_options).merge(input_html_options), wrapper_options)
  @builder.attachment_field(attribute_name, merged_input_options)
end