Skip to content

Commit 2f85ab9

Browse files
committed
Include controller concerns with controllers
Closes tpope#424.
1 parent a5546e8 commit 2f85ab9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

autoload/rails.vim

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4513,6 +4513,15 @@ let s:default_projections = {
45134513
\ ],
45144514
\ "type": "controller"
45154515
\ },
4516+
\ "app/controllers/concerns/*.rb": {
4517+
\ "affinity": "controller",
4518+
\ "template": [
4519+
\ "module {camelcase|capitalize|colons}",
4520+
\ "\tinclude ActiveSupport::Concern",
4521+
\ "end"
4522+
\ ],
4523+
\ "type": "controller"
4524+
\ },
45164525
\ "app/helpers/*_helper.rb": {
45174526
\ "affinity": "controller",
45184527
\ "template": ["module {camelcase|capitalize|colons}Helper", "end"],

0 commit comments

Comments
 (0)