Merge pull request #177 from signaturelabs/ruby_delegate
Snippet for Rails delegate
This commit is contained in:
commit
8024519767
@ -660,6 +660,10 @@ snippet defupdate
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end${3}
|
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
|
snippet flash
|
||||||
flash[:${1:notice}] = "${2}"
|
flash[:${1:notice}] = "${2}"
|
||||||
snippet habtm
|
snippet habtm
|
||||||
|
Loading…
Reference in New Issue
Block a user