Skip to content

Commit 7e85bb3

Browse files
committed
Clean up old gf special cases
1 parent eea854a commit 7e85bb3

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

autoload/rails.vim

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2362,11 +2362,9 @@ endfunction
23622362

23632363
call s:add_methods('app', ['route_names','named_route_file'])
23642364

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"
2365+
function! s:RailsIncludefind(str,...) abort
2366+
if a:str ==# "ApplicationController" && rails#app().has_path('app/controllers/application.rb')
2367+
return 'application.rb'
23702368
endif
23712369
let str = a:str
23722370
if a:0 == 1

0 commit comments

Comments
 (0)