From 0fbb89d9086ef3b831d8d6f3b238ad19893f543a Mon Sep 17 00:00:00 2001 From: Mike Foley Date: Fri, 1 Mar 2013 14:48:50 -0800 Subject: [PATCH] added delegate to ruby.snippets --- snippets/ruby.snippets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/snippets/ruby.snippets b/snippets/ruby.snippets index 8805430..ccb3968 100644 --- a/snippets/ruby.snippets +++ b/snippets/ruby.snippets @@ -660,6 +660,10 @@ snippet defupdate end end end${3} +snippet dele delegate .. to + delegate :${1:methods}, :to => :${2:object} +snippet dele delegate .. to .. prefix .. allow_nil + delegate :${1:methods}, :to => :${2:object}, :prefix => :${3:prefix}, :allow_nil => ${4:allow_nil} snippet flash flash[:${1:notice}] = "${2}" snippet habtm