lib/sketchily/sketchily.rb in sketchily-1.5.0 vs lib/sketchily/sketchily.rb in sketchily-4.0.0
- old
+ new
@@ -10,13 +10,11 @@
:options => objectify_options(options)
}
)
end
- def svg_edit(method, options = {})
- sketchily(method, options)
- end
+ alias_method :svg_edit, :sketchily
end
module ActionViewBaseInstanceMethods
def sketchily(object_name, method, options = {})
self.render(
@@ -28,12 +26,10 @@
:options => options
}
)
end
- def svg_edit(object_name, method, options = {})
- sketchily(object_name, method, options)
- end
+ alias_method :svg_edit, :sketchily
end
end
ActionView::Helpers::FormBuilder.send :include, Sketchily::FormBuilderInstanceMethods
ActionView::Base.send :include, Sketchily::ActionViewBaseInstanceMethods