Sha256: 9e8723e4fcf79901d14467a9e6259f34ccb4fcf61d245c7cdeda8941b4090975
Contents?: true
Size: 964 Bytes
Versions: 1
Compression:
Stored size: 964 Bytes
Contents
module MethodDraw module FormBuilderInstanceMethods 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 alias_method :svg_edit, :method_draw end module ActionViewBaseInstanceMethods 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 alias_method :svg_edit, :method_draw end end ActionView::Helpers::FormBuilder.send :include, MethodDraw::FormBuilderInstanceMethods ActionView::Base.send :include, MethodDraw::ActionViewBaseInstanceMethods
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
method_draw-0.0.1 | lib/method_draw/method_draw.rb |