Skip to content

Commit

Permalink
refined validates_acceptance_of
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrencepit authored and drnic committed Jun 19, 2008
1 parent 4935c91 commit df33ea8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Snippets/validates_acceptance_of if.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>validates_acceptance_of :${1:terms}${2:, :accept =&gt; "${3:1}"}${4:, :message =&gt; "${5:You must accept the terms of service}"}, :if =&gt; proc { |obj| ${6:obj.condition?} }}</string>
<string>validates_acceptance_of :${1:terms}${2:${3:, :accept =&gt; "${4:1}"}${5:, :message =&gt; "${6:You must accept the terms of service}"}}, :if =&gt; proc { |obj| ${7:obj.condition?} }}</string>
<key>name</key>
<string>validates_acceptance_of if</string>
<key>scope</key>
Expand Down
2 changes: 1 addition & 1 deletion Snippets/validates_acceptance_of.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>validates_acceptance_of :${1:terms}${2:, :accept =&gt; "${3:1}"}${4:, :message =&gt; "${5:You must accept the terms of service}"}</string>
<string>validates_acceptance_of :${1:terms}${2:${3:, :accept =&gt; "${4:1}"}${5:, :message =&gt; "${6:You must accept the terms of service}"}}</string>
<key>name</key>
<string>validates_acceptance_of</string>
<key>scope</key>
Expand Down
4 changes: 2 additions & 2 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -775,10 +775,10 @@
<string>F396B7BD-8255-48B1-904A-06E7D7CC2741</string>
<string>3E3AF538-171B-4108-AB92-827AD7E24C77</string>
<string>9D58B6C9-BA52-48B3-B639-D5CB894AF810</string>
<string>47944705-F605-4ED4-B4C0-9E823EE25138</string>
<string>85E9264C-5414-4FA0-AC07-F305A798ED46</string>
<string>89198999-7E6D-4D97-A20E-45263E1CA993</string>
<string>A2477223-AD5A-4723-8052-943CE9BA634D</string>
<string>47944705-F605-4ED4-B4C0-9E823EE25138</string>
<string>85E9264C-5414-4FA0-AC07-F305A798ED46</string>
<string>B5893618-D07C-48F1-8867-736D0AAFF0E7</string>
<string>1354726C-DA64-4CA6-A099-26626A865D8D</string>
<string>4CC98A56-B60B-4A89-80E0-400C5314A050</string>
Expand Down

0 comments on commit df33ea8

Please sign in to comment.