Skip to content

Commit

Permalink
Fix :Eview from mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
algert072 authored and gersonkevin23 committed Mar 12, 2018
1 parent 0c362be commit d8c3c31
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions autoload/rails.vim
Expand Up @@ -4785,15 +4785,9 @@ function! s:app_smart_projections() dict abort
endif
endfor
if has_key(dict, 'app/mailers/*_mailer.rb') || self.has_rails5()
let dict['app/mailers/*_mailer.rb'] = {
\ "affinity": "controller",
\ "template": ["class {camelcase|capitalize|colons}Mailer < ActionMailer::Base", "end"],
\ "type": "mailer"}
let dict['app/mailers/*_mailer.rb'] = {"type": "mailer"}
else
let dict['app/mailers/*.rb'] = {
\ "affinity": "controller",
\ "template": ["class {camelcase|capitalize|colons} < ActionMailer::Base", "end"],
\ "type": "mailer"}
let dict['app/mailers/*.rb'] = {"type": "mailer"}
endif
call self.cache.set('smart_projections', dict, ts)
endif
Expand Down Expand Up @@ -4874,6 +4868,10 @@ let s:default_projections = {
\ "template": ["class {camelcase|capitalize|colons}Job < ActiveJob::Base", "end"],
\ "type": "job"
\ },
\ "app/mailers/*.rb": {
\ "affinity": "controller",
\ "template": ["class {camelcase|capitalize|colons} < ActionMailer::Base", "end"]
\ },
\ "app/models/*.rb": {
\ "affinity": "model",
\ "template": ["class {camelcase|capitalize|colons}", "end"],
Expand Down

0 comments on commit d8c3c31

Please sign in to comment.