From 8c2ad98d54d68fb1e2d30a78f01500422d021de0 Mon Sep 17 00:00:00 2001 From: DSIW Date: Sat, 22 Jun 2013 14:55:38 +0200 Subject: [PATCH] Use lambda in scopes for rails snippets --- snippets/ruby.snippets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/ruby.snippets b/snippets/ruby.snippets index 0b4616b..0ea63b6 100644 --- a/snippets/ruby.snippets +++ b/snippets/ruby.snippets @@ -798,7 +798,7 @@ snippet ru snippet rxml render :xml => ${1:text to render} snippet sc - scope :${1:name}, :where(:@${2:field} => ${3:value}) + scope :${1:name}, -> { where(${2:field}: ${3:value}) } snippet sl scope :${1:name}, lambda do |${2:value}| where("${3:field = ?}", ${4:bind var})