public
Description: Ruby on Rails TextMate bundle [Learn it with PeepCode - http://peepcode.com/products/textmate-for-rails-2]
Homepage: http://groups.google.com/group/rubyonrails-textmate
Clone URL: git://github.com/drnic/ruby-on-rails-tmbundle.git
Click here to lend your support to: ruby-on-rails-tmbundle and make a donation at www.pledgie.com !
improve named scope snippet
lawrencepit (author)
Tue Jun 24 18:09:59 -0700 2008
commit  f5728aae638159f233cdc4c7f90b3549d19c53f1
tree    83ba6aebc605e4f2cc1de6cfeac3476a74d7f464
parent  7d96c8fb47700150304367126942bc60ede5b70b
...
3
4
5
6
 
7
8
9
...
3
4
5
 
6
7
8
9
0
@@ -3,7 +3,7 @@
0
 <plist version="1.0">
0
 <dict>
0
   <key>content</key>
0
- <string>named_scope :name${1:, :joins =&gt; :${2:table}}, :conditions =&gt; ${3:['${4:${5:field} = ?}', ${6:true}]}
0
+ <string>named_scope :${1:name}${2:, :joins =&gt; :${3:table}}, :conditions =&gt; ${4:['${5:${6:field} = ?}', ${7:true}]}
0
 </string>
0
   <key>name</key>
0
   <string>named_scope</string>

Comments

    No one has commented yet.