Skip to content

Commit 661ed68

Browse files
author
Darrick Wiebe
committed
Merge commit 'duff/master'
* commit 'duff/master': Adjusted the :Rextract command to use the latest way that Rails renders partials (the :partial is no longer necessary as it's now the default thing being rendered.)
2 parents b02dbf5 + d3789bd commit 661ed68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2961,7 +2961,7 @@ function! s:Extract(bang,...) range abort
29612961
else
29622962
let fspaces = spaces
29632963
endif
2964-
let renderstr = "render :partial => '".fnamemodify(file,":r:r")."'"
2964+
let renderstr = "render '".fnamemodify(file,":r:r")."'"
29652965
if collection != ""
29662966
let renderstr .= ", :collection => ".collection
29672967
elseif "@".name != var

0 commit comments

Comments
 (0)