Module: Refile::AttachmentHelper::FormBuilder

Defined in:
lib/refile/rails/attachment_helper.rb

Overview

Form builder extension

Instance Method Summary collapse

Instance Method Details

#attachment_field(method, options = {}) ⇒ Object



7
8
9
10
# File 'lib/refile/rails/attachment_helper.rb', line 7

def attachment_field(method, options = {})
  self.multipart = true
  @template.attachment_field(@object_name, method, objectify_options(options))
end