Skip to content
Browse files

Add has_one through

  • Loading branch information...
1 parent 5f9b0c5 commit 43e969d41fc7cff0924df92c18331c2d509f4058 @tadast committed Jan 18, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 has_one_through-(hot).sublime-snippet
View
6 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.
Something went wrong with that request. Please try again.