# -*- mode: snippet -*- # key: vfif # contributor: Translated from TextMate Snippet # name: validates_format_of if ## condition: "source.ruby.rails" # -- validates_format_of :${1:attribute}, :with => /${2:^[${3:\w\d}]+\$}/${4:, :on => :${5:create}, :message => "${6:is invalid}"}, :if => proc { |obj| ${7:obj.condition?} }