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 eea854a commit 7e85bb3Copy full SHA for 7e85bb3
autoload/rails.vim
@@ -2362,11 +2362,9 @@ endfunction
2362
2363
call s:add_methods('app', ['route_names','named_route_file'])
2364
2365
-function! s:RailsIncludefind(str,...)
2366
- if a:str ==# "ApplicationController"
2367
- return "application_controller.rb\napp/controllers/application.rb"
2368
- elseif a:str ==# "Test::Unit::TestCase"
2369
- return "test/unit/testcase.rb"
+function! s:RailsIncludefind(str,...) abort
+ if a:str ==# "ApplicationController" && rails#app().has_path('app/controllers/application.rb')
+ return 'application.rb'
2370
endif
2371
let str = a:str
2372
if a:0 == 1
0 commit comments