File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -2630,9 +2630,7 @@ function! s:readable_resolve_layout(name, ...) dict abort
26302630 if name == # ' '
26312631 let name = self .controller_name (1 )
26322632 endif
2633- if name !~# ' /'
2634- let name = ' layouts/' .name
2635- endif
2633+ let name = ' layouts/' .name
26362634 let view = self .resolve_view (name, a: 0 ? a: 1 : 0 )
26372635 if view == # ' ' && a: name == # ' '
26382636 let view = self .resolve_view (' layouts/application' , a: 0 ? a: 1 : 0 )
@@ -2682,13 +2680,11 @@ function! s:viewEdit(cmd,...)
26822680endfunction
26832681
26842682function ! s: layoutEdit (cmd,... )
2685- if a: 0 && a: 1 = ~# ' /'
2686- return s: viewEdit (a: cmd ,a: 1 )
2687- elseif a: 0
2683+ if a: 0
26882684 return s: viewEdit (a: cmd ," layouts/" .a: 1 )
26892685 endif
26902686 let file = s: findlayout (' ' )
2691- if file == " "
2687+ if file == # " "
26922688 let file = " app/views/layouts/application.html.erb"
26932689 endif
26942690 call s: edit (a: cmd ,s: sub (file ,' ^/' ,' ' ))
You can’t perform that action at this time.
0 commit comments