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 7ac6b0b commit afbe19dCopy full SHA for afbe19d
autoload/rails.vim
@@ -1016,15 +1016,15 @@ function! s:BufCommands()
1016
endfunction
1017
1018
function! s:Log(bang,arg)
1019
- let lf = 'log/' . (empty(a:arg) ? s:environment() : a:arg) . '.log'
+ let lf = rails#app().path('log/' . (empty(a:arg) ? s:environment() : a:arg) . '.log')
1020
if a:bang
1021
- exe "cgetfile ".lf
+ exe 'cgetfile' s:fnameescape(lf)
1022
clast
1023
else
1024
if exists(":Tail") == 2
1025
- Tail `=rails#app().path(lf)`
+ exe 'Tail' lf
1026
1027
- pedit `=rails#app().path(lf)`
+ exe 'pedit' lf
1028
endif
1029
1030
0 commit comments