mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-11 08:00:53 +00:00
first commit of a million rails snippets, conditions missing, command implementation missing...
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: vf
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: validates_format_of
|
||||
## condition: "source.ruby.rails"
|
||||
# --
|
||||
validates_format_of :${1:attribute}, :with => /${2:^[${3:\w\d}]+\$}/${4:, :on => :${5:create}, :message => "${6:is invalid}"}
|
||||
Reference in New Issue
Block a user