Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 317 Bytes
<snippet>
<content><![CDATA[validates_presence_of :${1:attribute}${2:, on: :${3:create}, message: "${4:can't be blank}"}, if: proc { |obj| ${5:obj.condition?} }}]]></content>
<tabTrigger>vpif</tabTrigger>
<scope>source.ruby.rails</scope>
<description>validates_presence_of if</description>
</snippet>