Module: BootstrapRefile::AttachmentHelper::FormBuilder

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

Overview

Form builder extension

Instance Method Summary collapse

Instance Method Details

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

See Also:

  • BootstrapAttachmentHelper#attachment_field


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

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