Add has_one ... dependent: ... ruby snippet
This commit is contained in:
parent
a26b3f9c0f
commit
1d04040a19
@ -680,6 +680,8 @@ snippet hmt
|
||||
has_many :${1:object}, :through => :${2:object}
|
||||
snippet ho
|
||||
has_one :${1:object}
|
||||
snippet hod
|
||||
has_one :${1:object}, dependent: :${2:destroy}
|
||||
snippet i18
|
||||
I18n.t('${1:type.key}')${2}
|
||||
snippet ist
|
||||
|
Loading…
Reference in New Issue
Block a user