Module: MethodDraw::FormBuilderInstanceMethods

Defined in:
lib/method_draw/method_draw.rb

Instance Method Summary collapse

Instance Method Details

#method_draw(method, options = {}) ⇒ Object Also known as: svg_edit



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/method_draw/method_draw.rb', line 3

def method_draw(method, options = {})
  @template.render(
    :partial => "method_draw/method_draw",
    :locals => {
      :template => @template,
      :object_name => @object_name,
      :method => method,
      :options => objectify_options(options)
    }
  )
end