Add has_one ... dependent: ... ruby snippet

This commit is contained in:
Iuri Fernandes 2013-05-19 18:00:59 -03:00
parent a26b3f9c0f
commit 1d04040a19

View File

@ -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