mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-14 05:23:04 +00:00
7 lines
357 B
Plaintext
7 lines
357 B
Plaintext
# -*- mode: snippet -*-
|
|
# key: viif
|
|
# contributor: Translated from TextMate Snippet
|
|
# name: validates_inclusion_of if
|
|
## condition: "source.ruby.rails"
|
|
# --
|
|
validates_inclusion_of :${1:attribute}${2:, :in => ${3:%w( ${4:mov avi} )}, :on => :${5:create}, :message => "${6:extension %s is not included in the list}"}, :if => proc { |obj| ${7:obj.condition?} } |