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}
|
has_many :${1:object}, :through => :${2:object}
|
||||||
snippet ho
|
snippet ho
|
||||||
has_one :${1:object}
|
has_one :${1:object}
|
||||||
|
snippet hod
|
||||||
|
has_one :${1:object}, dependent: :${2:destroy}
|
||||||
snippet i18
|
snippet i18
|
||||||
I18n.t('${1:type.key}')${2}
|
I18n.t('${1:type.key}')${2}
|
||||||
snippet ist
|
snippet ist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user