浏览代码

rails: detect gems.rb in _rake_command (#8223)

Angelos Orfanakos 5 年之前
父节点
当前提交
74165aba4a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/rails/rails.plugin.zsh

+ 1 - 1
plugins/rails/rails.plugin.zsh

@@ -17,7 +17,7 @@ function _rake_command () {
     bin/stubs/rake $@
   elif [ -e "bin/rake" ]; then
     bin/rake $@
-  elif type bundle &> /dev/null && [ -e "Gemfile" ]; then
+  elif type bundle &> /dev/null && ([ -e "Gemfile" ] || [ -e "gems.rb" ]); then
     bundle exec rake $@
   else
     command rake $@