Browse Source

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

Angelos Orfanakos 5 years ago
parent
commit
74165aba4a
1 changed files with 1 additions and 1 deletions
  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 $@