Skip to content

Commit 9be6339

Browse files
committed
Use lists not strings for all templates
Closes tpope#418.
1 parent d748823 commit 9be6339

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

autoload/rails.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4520,17 +4520,17 @@ let s:default_projections = {
45204520
\ "type": "helper"
45214521
\ },
45224522
\ "app/jobs/*_job.rb": {
4523-
\ "template": "class {camelcase|capitalize|colons}Job < ActiveJob::Base\nend",
4523+
\ "template": ["class {camelcase|capitalize|colons}Job < ActiveJob::Base", "end"],
45244524
\ "type": "job"
45254525
\ },
45264526
\ "app/mailers/*.rb": {
45274527
\ "affinity": "controller",
4528-
\ "template": "class {camelcase|capitalize|colons} < ActionMailer::Base\nend",
4528+
\ "template": ["class {camelcase|capitalize|colons} < ActionMailer::Base", "end"],
45294529
\ "type": "mailer"
45304530
\ },
45314531
\ "app/models/*.rb": {
45324532
\ "affinity": "model",
4533-
\ "template": "class %S\nend",
4533+
\ "template": ["class {camelcase|capitalize|colons}", "end"],
45344534
\ "type": "model"
45354535
\ },
45364536
\ "config/application.rb": {"alternate": "config/routes.rb"},

0 commit comments

Comments
 (0)