mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-12-12 00:14:18 +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: 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
|
||||
Reference in New Issue
Block a user