Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add accepts_nested_attributes_for [anaf]

  • Loading branch information...
commit 3f34b91ad136b121b231105eba82703c3bc9eece 1 parent 3eaf200
@tadast authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 accepts_nested_attributes_for.sublime-snippet
View
6 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>
Please sign in to comment.
Something went wrong with that request. Please try again.