File tree Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Expand file tree Collapse file tree 2 files changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -1038,16 +1038,11 @@ function! s:Log(bang,arg)
10381038endfunction
10391039
10401040function ! rails#new_app_command (bang ,... ) abort
1041- if ! a: 0 && a: bang
1042- echo " rails.vim " .g: autoloaded_rails
1043- elseif ! a: 0 || a: 1 !=# ' new'
1041+ if ! a: 0 || a: 1 !=# ' new'
10441042 return ' echoerr ' .string (' Usage: rails new <path>' )
10451043 endif
10461044
10471045 let args = copy (a: 000 )
1048- if a: bang
1049- let args += [' --force' ]
1050- endif
10511046
10521047 if &shellpipe !~# ' tee' && index (args , ' --skip' ) < 0 && index (args , ' --force' ) < 0
10531048 let args += [' --skip' ]
@@ -1675,14 +1670,6 @@ function! s:app_generators() dict abort
16751670endfunction
16761671
16771672function ! s: app_script_command (bang ,... ) dict
1678- let msg = " rails.vim " .g: autoloaded_rails
1679- if a: 0 == 0 && a: bang && rails#buffer ().type_name () == ' '
1680- echo msg." (Rails)"
1681- return
1682- elseif a: 0 == 0 && a: bang
1683- echo msg." (Rails-" .rails#buffer ().type_name ()." )"
1684- return
1685- endif
16861673 let str = join (map (copy (a: 000 ), ' s:rquote(v:val)' ), ' ' )
16871674 if str = ~# ' ^\%(c\|console\|db\|dbconsole\|s\|server\)\S\@!' && str !~# ' -d\| --daemon\| --help'
16881675 return self .start_rails_command (str, a: bang )
Original file line number Diff line number Diff line change @@ -50,11 +50,6 @@ actually edit a file from a Rails application.
5050 {directory} " and loads the generated files into the
5151 quickfix list.
5252
53- *rails-:Rails!*
54- :Rails! Show the version of rails.vim installed. If rails.vim
55- is active for the current buffer, also show the type
56- of Rails file detected.
57-
5853 *rails-:Rlog*
5954:Rlog [{logfile} ] Split window and open {logfile} ($RAILS_ENV or
6055 development by default). The control characters used
You can’t perform that action at this time.
0 commit comments