Skip to content

Commit

Permalink
Add has_one through
Browse files Browse the repository at this point in the history
  • Loading branch information
tadast committed Jan 18, 2013
1 parent 5f9b0c5 commit 43e969d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions has_one_through-(hot).sublime-snippet
@@ -0,0 +1,6 @@
<snippet>
<content><![CDATA[has_one :${1:object}, through: :${2:join_association}${3:, source: :${4:${2}_table_foreign_key_to_${1}_table}}]]></content>
<tabTrigger>hot</tabTrigger>
<scope>source.ruby.rails</scope>
<description>has_one through</description>
</snippet>

0 comments on commit 43e969d

Please sign in to comment.