Skip to content

Commit 6dfaac1

Browse files
committed
Expose embedded Ruby check
1 parent 8ec6c70 commit 6dfaac1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

autoload/rails.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2362,7 +2362,7 @@ function! s:findasset(path, dir) abort
23622362
return path . post
23632363
endfunction
23642364

2365-
function! s:is_embedded_ruby() abort
2365+
function! rails#is_embedded_ruby() abort
23662366
let groups = [
23672367
\ 'erubyBlock', 'erubyExpression', 'erubyComment', 'erubyOneLiner',
23682368
\ 'hamlRuby']
@@ -2384,7 +2384,7 @@ function! s:cfile_delegate(expr) abort
23842384
endfunction
23852385

23862386
function! rails#embedded_cfile(...) abort
2387-
if s:is_embedded_ruby()
2387+
if rails#is_embedded_ruby()
23882388
let expr = 'rails#cfile('.(a:0 > 1 ? string(a:2) : '').')'
23892389
else
23902390
let expr = s:cfile_delegate(a:0 ? a:1 : '')

0 commit comments

Comments
 (0)