Skip to content

Commit a7b6109

Browse files
committed
Merge pull request honza#308 from robertomiranda/patch-1
Add before_action snippet (Rails)
2 parents 9cf1363 + c7d3ce0 commit a7b6109

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

snippets/ruby.snippets

+2
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,8 @@ snippet asrj
620620
assert_rjs :${1:replace}, "${0:dom id}"
621621
snippet ass assert_select(..)
622622
assert_select '${1:path}', :${2:text} => '${3:inner_html' ${4:do}
623+
snippet ba
624+
before_action :${0:method}
623625
snippet bf
624626
before_filter :${0:method}
625627
snippet bt

0 commit comments

Comments
 (0)