mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-15 01:44: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}]} } }
|
||||
7
extras/imported/rails-mode/Scopes/named_scope.yasnippet
Normal file
7
extras/imported/rails-mode/Scopes/named_scope.yasnippet
Normal file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# key: nc
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: named_scope
|
||||
## condition: "source.ruby.rails"
|
||||
# --
|
||||
named_scope :name${1:, :joins => :${2:table}}, :conditions => ${3:['${4:${5:field} = ?}', ${6:true}]}
|
||||
Reference in New Issue
Block a user