mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 01:44:19 +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: vlif
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: validates_length_of if
|
||||
## condition: "source.ruby.rails"
|
||||
# --
|
||||
validates_length_of :${1:attribute}, :within => ${2:3..20}${3:, :on => :${4:create}, :message => "${5:must be present}"}, :if => proc { |obj| ${6:obj.condition?} }
|
||||
Reference in New Issue
Block a user