Permalink
Browse files

Change scope to use lambda and where

  • Loading branch information...
1 parent 98d3697 commit 0fbf580b01298164fb13467e2e1e715a92623c6e @tadast committed Mar 30, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 named_scope.sublime-snippet → scope.sublime-snippet
@@ -1,5 +1,5 @@
<snippet>
- <content><![CDATA[scope :name${1:, joins: :${2:table}}, conditions: ${3:['${4:${5:field} = ?}', ${6:true}]}
+ <content><![CDATA[scope :${1:name}, ->{ where(${2:attr:} ${3:value}) }
]]></content>
<tabTrigger>sc</tabTrigger>
<scope>source.ruby.rails</scope>

0 comments on commit 0fbf580

Please sign in to comment.