PageRenderTime 224ms CodeModel.GetById 101ms app.highlight 1ms RepoModel.GetById 80ms app.codeStats 0ms

/ruby-mode/Ruby on Rails/Model/model.nsl

http://github.com/ridgetang/snippets
Unknown | 8 lines | 8 code | 0 blank | 0 comment | 0 complexity | 51ab0a2e2d5b0b8a098ab4abfa1c2945 MD5 | raw file
1#name : named_scope ... lambda {}
2#key : nsl
3#group : rails.model
4#condition : (rails/model?)
5# --
6named_scope :${1:approved}, lambda { |i|
7  { :conditions => { :${2:approved} => ${3:true} } }
8}