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 8b514fc commit 89e2d10Copy full SHA for 89e2d10
plugin/rails.vim
@@ -37,11 +37,8 @@ function! RailsDetect(...) abort
37
endif
38
let ofn = ""
39
let fns = []
40
- while fn != ofn && fn !=# '/'
+ while fn != ofn && fn !=# '/' && fn !=# '.'
41
call add(fns, fn)
42
- if fn ==# '.'
43
- throw 'Rails app detection bug: '.string(fns)[1: -2]
44
- endif
45
if filereadable(fn . "/config/environment.rb")
46
let b:rails_root = resolve(fn)
47
return 1
0 commit comments