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

http://github.com/ridgetang/snippets · Unknown · 6 lines · 6 code · 0 blank · 0 comment · 0 complexity · c26394606ddf1f3de87b2743f3b57f52 MD5 · raw file

  1. #name : belongs_to :polymorphic
  2. #key : btp
  3. #group : rails.model
  4. #condition : (rails/model?)
  5. # --
  6. belongs_to :${1:ownable}, :polymorphic => true