Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 236b562

Browse files
author
Adam Berlin & Jon Berger
committed
Ensure that app/models matches ruby files.
- allows public/javascripts/app/models/* to match alternate files.
1 parent de9ad34 commit 236b562

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ function! s:readable_calculate_file_type() dict abort
676676
let r = "metal"
677677
elseif f =~ '\<app/mailers/.*\.rb'
678678
let r = "mailer"
679-
elseif f =~ '\<app/models/'
679+
elseif f =~ '\<app/models/*rb'
680680
let top = join(s:readfile(full_path,50),"\n")
681681
let class = matchstr(top,'\<Acti\w\w\u\w\+\%(::\h\w*\)\+\>')
682682
if class == "ActiveResource::Base"

0 commit comments

Comments
 (0)