Skip to content

Commit abf87ba

Browse files
committed
Add channel projection
Closes tpope#452
1 parent df64206 commit abf87ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

autoload/rails.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4525,6 +4525,10 @@ let s:default_projections = {
45254525
\ "README": {"alternate": "config/database.yml"},
45264526
\ "README.*": {"alternate": "config/database.yml"},
45274527
\ "Rakefile": {"type": "task"},
4528+
\ "app/channels/*_channel.rb": {
4529+
\ "template": ["class {camelcase|capitalize|colons}Channel < ActionCable::Channel", "end"],
4530+
\ "type": "channel"
4531+
\ },
45284532
\ "app/controllers/*_controller.rb": {
45294533
\ "affinity": "controller",
45304534
\ "template": [

0 commit comments

Comments
 (0)