# -*- mode: snippet -*-
# key: vpif
# contributor: Translated from TextMate Snippet
# name: validates_presence_of if
## condition: "source.ruby.rails"
# --
validates_presence_of :${1:attribute}${2:, :on => :${3:create}, :message => "${4:can't be blank}"}, :if => proc { |obj| ${5:obj.condition?} }