Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/image_thread/patches/form_helper.rb

Instance Method Summary collapse

Instance Method Details

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



30
31
32
33
34
# File 'lib/image_thread/patches/form_helper.rb', line 30

def image_thread_field(method, options = {})
  options[:thread] = self.object.send([method, 'id'].join('_'))
  options[:dir] = (options[:dir] || self.object.class.to_s).parameterize('_')
  @template.image_thread_field(@object_name, method, options)
end