We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2527082 commit 4c7e3b4Copy full SHA for 4c7e3b4
autoload/rails.vim
@@ -5019,7 +5019,10 @@ function! rails#buffer_setup() abort
5019
let dir = dispatch#dir_opt(self.app().path())
5020
endif
5021
5022
- if self.name() =~# '^public'
+ let dispatch = self.projected('dispatch')
5023
+ if !empty(dispatch) && exists(dir)
5024
+ call self.setvar('dispatch', dir . dispatch[0])
5025
+ elseif self.name() =~# '^public'
5026
call self.setvar('dispatch', ':Preview')
5027
elseif self.type_name('test', 'spec', 'cucumber')
5028
call self.setvar('dispatch', ':Runner')
0 commit comments