Skip to content

Commit ead8075

Browse files
committed
Drop :Rails! as status command
Was this useful? With Rails 5 phasing out rake, it makes sense for :Rails to merge with :Rake, and this will be in the way.
1 parent e25769a commit ead8075

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

autoload/rails.vim

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,16 +1038,11 @@ function! s:Log(bang,arg)
10381038
endfunction
10391039

10401040
function! 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
16751670
endfunction
16761671

16771672
function! 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)

doc/rails.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)