yasnippet/extras/imported/rails-mode/Associations/has_many dependent = destroy.yasnippet

7 lines
273 B
Plaintext

# -*- mode: snippet -*-
# key: hmd
# contributor: Translated from TextMate Snippet
# name: has_many :dependent => :destroy
## condition: "source.ruby.rails"
# --
has_many :${1:object}s${2:, :class_name => "$1", :foreign_key => "${4:reference}_id"}, :dependent => :destroy$0