public
Fork of drnic/ruby-on-rails-tmbundle
Description: Ruby on Rails TextMate bundle [master branch is svn trunk; patches to drnicwilliams@gmail.com]
Homepage: http://macromates.com
Clone URL: git://github.com/Infininight/ruby-on-rails-tmbundle.git
ruby-on-rails-tmbundle / Snippets / validates_confirmation_of if (vcif).plist
100644 17 lines (16 sloc) 0.637 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>content</key>
  <string>validates_confirmation_of :${1:attribute}${2:, :on =&gt; :${3:create}, :message =&gt; "${4:should match confirmation}", :if =&gt; proc { |obj| ${5:obj.condition?} }}</string>
  <key>name</key>
  <string>validates_confirmation_of if</string>
  <key>scope</key>
  <string>source.ruby.rails</string>
  <key>tabTrigger</key>
  <string>vcif</string>
  <key>uuid</key>
  <string>1354726C-DA64-4CA6-A099-26626A865D8D</string>
</dict>
</plist>