Module: MethodDraw::ActionViewBaseInstanceMethods

Defined in:
lib/method_draw/method_draw.rb

Instance Method Summary collapse

Instance Method Details

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



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/method_draw/method_draw.rb', line 19

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