Skip to content

Commit 371447d

Browse files
committed
Treat rails#app('') as equivalent to rails#app()
1 parent f7fc6fc commit 371447d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ function! rails#pluralize(word)
599599
endfunction
600600

601601
function! rails#app(...) abort
602-
let root = s:sub(a:0 ? a:1 : get(b:, 'rails_root', ''), '[\/]$', '')
602+
let root = s:sub(a:0 && len(a:1) ? a:1 : get(b:, 'rails_root', ''), '[\/]$', '')
603603
if !empty(root)
604604
if !has_key(s:apps, root) && filereadable(root . '/config/environment.rb')
605605
let s:apps[root] = deepcopy(s:app_prototype)

0 commit comments

Comments
 (0)