Skip to content

Commit ff5f552

Browse files
committed
Default :Rlib to db/seeds.rb
1 parent bacf009 commit ff5f552

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

autoload/rails.vim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2755,8 +2755,7 @@ function! s:libEdit(cmd,...)
27552755
if a:0
27562756
call s:EditSimpleRb(a:cmd,"lib",a:0? a:1 : "",extra."lib/",".rb")
27572757
else
2758-
call s:EditSimpleRb(a:cmd,"lib","routes","config/",".rb")
2759-
call s:warn('Warning: :Rlib with no argument has been deprecated in favor of :Rinitializer')
2758+
call s:EditSimpleRb(a:cmd,"lib","seeds","db/",".rb")
27602759
endif
27612760
endfunction
27622761

doc/rails.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ itself!).
409409
specified name. If the current file is part of a
410410
plugin, the libraries from that plugin can be
411411
specified as well. With no argument, defaults to
412-
editing config/routes.rb.
412+
editing db/seeds.rb.
413413

414414
*rails-:Rlocale*
415415
:Rlocale [{name}] Edit the config/locale file specified, optionally

0 commit comments

Comments
 (0)