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
Search Repo:
Click here to lend your support to: ruby-on-rails-tmbundle and make a donation at www.pledgie.com !
slight named_scope improvement
lawrencepit (author)
Wed Jun 04 20:13:32 -0700 2008
drnic (committer)
Wed Jun 18 17:10:49 -0700 2008
commit  ba4d55430775145cb291aa2df2d3631df587212e
tree    d7565d179e9dc3ee9407fb270908e710f6d7ca21
parent  c282a1b2f24b043073e1bd391e32525667a5a8b8
...
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, lambda { |${1:param}| { ${3::conditions =&gt; ['${4:${5:field} = ?}', ${6:$1}]} } }
0
+ <string>named_scope :name, lambda { |${1:param}| { :conditions =&gt; ${3:['${4:${5:field} = ?}', ${6:$1}]} } }
0
 </string>
0
   <key>name</key>
0
   <string>named_scope lambda</string>
...
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}}${3:, :conditions =&gt; ['${4:${5:field} = ?}', ${6:true}]}
0
+ <string>named_scope :name${1:, :joins =&gt; :${2:table}}, :conditions =&gt; ${3:['${4:${5:field} = ?}', ${6:true}]}
0
 </string>
0
   <key>name</key>
0
   <string>named_scope</string>

Comments

    No one has commented yet.