summaryrefslogtreecommitdiff
path: root/ale_linters/eruby/erubis.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ale_linters/eruby/erubis.vim')
-rw-r--r--ale_linters/eruby/erubis.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/ale_linters/eruby/erubis.vim b/ale_linters/eruby/erubis.vim
index ac356aeb..c9c8ac1e 100644
--- a/ale_linters/eruby/erubis.vim
+++ b/ale_linters/eruby/erubis.vim
@@ -11,7 +11,7 @@ function! ale_linters#eruby#erubis#GetCommand(buffer) abort
" Rails-flavored eRuby does not comply with the standard as understood by
" Erubis, so we'll have to do some substitution. This does not reduce the
" effectiveness of the linter—the translated code is still evaluated.
- return 'ruby -r erubis -e ' . ale#Escape('puts Erubis::Eruby.new($stdin.read.gsub(%{<%=},%{<%})).src') . ' | ruby -c'
+ return 'ruby -r erubis -e ' . ale#Escape('puts Erubis::Eruby.new($stdin.read.gsub(%{<%=},%{<%})).src') . '< %t | ruby -c'
endfunction
call ale#linter#Define('eruby', {