Some fixes in rails and ruby snippets
This commit is contained in:
parent
7f426f51b8
commit
1b904ea637
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user