Module: Refile::AttachmentHelper::FormBuilder

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

Overview

Form builder extension

Instance Method Summary collapse

Instance Method Details

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



13
14
15
16
# File 'lib/refile/rails/attachment_helper.rb', line 13

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

#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