Permalink
Browse files

Add accepts_nested_attributes_for [anaf]

  • Loading branch information...
1 parent 3eaf200 commit 3f34b91ad136b121b231105eba82703c3bc9eece @tadast committed Aug 15, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 accepts_nested_attributes_for.sublime-snippet
@@ -0,0 +1,6 @@
+<snippet>
+ <content><![CDATA[accepts_nested_attributes_for :${1:relationship}, ${2:reject_if: ->(attributes){ attributes['name'].blank? \}}${3, :allow_destroy: true}]]></content>
+ <tabTrigger>anaf</tabTrigger>
+ <scope>source.ruby.rails</scope>
+ <description>accepts_nested_attributes_for</description>
+</snippet>

0 comments on commit 3f34b91

Please sign in to comment.