Skip to content

Commit 3eaf200

Browse files
committed
Improve controller class snippet [con]
1 parent 7a8b461 commit 3eaf200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Create-controller-class.sublime-snippet

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<snippet>
2-
<content><![CDATA[class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}}sController < ApplicationController
3-
$2
2+
<content><![CDATA[class ${1:${TM_FILENAME/(?:\A|_)([A-Za-z0-9]+)(?:\.rb)?/(?2::\u$1)/g}} < ${2:Application}Controller
3+
$3
44
end]]></content>
55
<tabTrigger>con</tabTrigger>
66
<scope>source.ruby</scope>

0 commit comments

Comments
 (0)