mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-13 08:54:19 +00:00
first commit of a million rails snippets, conditions missing, command implementation missing...
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: ncl
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: named_scope lambda
|
||||
## condition: "source.ruby.rails"
|
||||
# --
|
||||
named_scope :name, lambda { |${1:param}| { :conditions => ${3:['${4:${5:field} = ?}', ${6:$1}]} } }
|
||||
Reference in New Issue
Block a user