Skip to content

Commit 6babb94

Browse files
committed
Guess controller class name for [con]
1 parent 4b2b5b5 commit 6babb94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Create-controller-class.sublime-snippet

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

0 commit comments

Comments
 (0)