# -*- mode: snippet -*-
# key: veif
# contributor: Translated from TextMate Snippet
# name: validates_exclusion_of if
## condition: "source.ruby.rails"
# --
validates_exclusion_of :${1:attribute}${2:, :in => ${3:%w( ${4:mov avi} )}, :on => :${5:create}, :message => "${6:extension %s is not allowed}"}, :if => proc { |obj| ${7:obj.condition?} }