Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 320 Bytes
<snippet>
<content><![CDATA[validates_uniqueness_of :${1:attribute}${2:, on: :${3:create}, message: "${4:must be unique}", if: proc { |obj| ${6:obj.condition?} }}]]></content>
<tabTrigger>vuif</tabTrigger>
<scope>source.ruby.rails</scope>
<description>validates_uniqueness_of if</description>
</snippet>