class SimpleFormAttachments::AttachmentInput

Attributes

configuration[RW]

Public Class Methods

configure() { |configuration| ... } click to toggle source
# File lib/simple_form_attachments/attachment_input.rb, line 9
def configure
  @configuration ||= Configuration.new
  yield @configuration
end

Public Instance Methods

input(wrapper_options) click to toggle source
# File lib/simple_form_attachments/attachment_input.rb, line 21
def input(wrapper_options)
  template.content_tag :div, merge_wrapper_options(input_html_options, wrapper_options) do
    template.concat attachment_blank_field
    template.concat attachment_file_field
    template.concat attachment_type_field
    template.concat attachment_multiple_field
    template.concat attachment_parent_class_field
    template.concat attachment_parent_name_field
    template.concat attachment_relation_key_field
    template.concat attachment_relation_name_field
    template.concat attachment_relation_class_field
    template.concat attachment_list
    template.concat handlebars_js_template
  end
end