Some fixes in rails and ruby snippets

This commit is contained in:
Holger Rapp 2012-02-12 08:10:27 +01:00
parent 7f426f51b8
commit 1b904ea637
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
########################################################################### ###########################################################################
snippet anaf "accepts_nested_attributes_for" snippet anaf "accepts_nested_attributes_for"
accepts_nested_attributes_for :${1:association_name}${2:${3:, :allow_destroy => true}${4:, :reject_if => proc { |obj| ${5:obj.blank?} \}}} accepts_nested_attributes_for :${1:association_name}${2:${3:, :allow_destroy => true}${4:, :reject_if => proc \{ |obj| ${5:obj.blank?} \}}}
endsnippet endsnippet

View File

@ -84,7 +84,7 @@ endsnippet
snippet "(de)?f" "def <name>..." r snippet "\b(de)?f" "def <name>..." r
def ${1:function_name}${2: ${3:*args}} def ${1:function_name}${2: ${3:*args}}
${4:# TODO$0} ${4:# TODO$0}
end end