Skip to content

Commit

Permalink
gf ApplicationController => application_controller
Browse files Browse the repository at this point in the history
  • Loading branch information
tpope committed Feb 20, 2009
1 parent 39d8c0d commit afc8726
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions autoload/rails.vim
Expand Up @@ -1773,12 +1773,9 @@ endfunction

function! s:RailsIncludefind(str,...)
if a:str ==# "ApplicationController"
return "app/controllers/application.rb"
return "application_controller.rb\napp/controllers/application.rb"
elseif a:str ==# "Test::Unit::TestCase"
return "test/unit/testcase.rb"
elseif a:str == "<%="
" Probably a silly idea
return "action_view.rb"
endif
let str = a:str
if a:0 == 1
Expand Down Expand Up @@ -1843,7 +1840,6 @@ function! s:RailsIncludefind(str,...)
endif
endwhile
elseif str =~# '_\%(path\|url\)$'
" REST helpers
let str = s:sub(str,'_%(path|url)$','')
let str = s:sub(str,'^hash_for_','')
let file = rails#app().named_route_file(str)
Expand Down

0 comments on commit afc8726

Please sign in to comment.