PageRenderTime 22ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

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

http://github.com/ridgetang/snippets
Unknown | 6 lines | 6 code | 0 blank | 0 comment | 0 complexity | 0ddb79b489a26c590b68b24ed48a514f MD5 | raw file
  1. #name : validates_format_of
  2. #key : vf
  3. #group : rails.model
  4. #condition : (rails/model?)
  5. # --
  6. validates_format_of :${1:email}, :with => ${2:/\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i}