summaryrefslogtreecommitdiff
path: root/plugins/rails
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2019-10-21 16:01:02 -0600
committerTuowen Zhao <ztuowen@gmail.com>2019-10-21 16:01:02 -0600
commit2e9fe98b8a9fe21b982e719e129678dede63771e (patch)
treee1dd9634ace0de1c752bddcbc67a998b7d73d40b /plugins/rails
parent112a85697481cae663ff281b74fdc1f72a67b294 (diff)
parent534ec60bfd14ee640076c7594ee4fa723fafd1b1 (diff)
downloadzsh-2e9fe98b8a9fe21b982e719e129678dede63771e.tar.gz
zsh-2e9fe98b8a9fe21b982e719e129678dede63771e.tar.bz2
zsh-2e9fe98b8a9fe21b982e719e129678dede63771e.zip
Merge branch 'master' of https://github.com/robbyrussell/oh-my-zsh
Diffstat (limited to 'plugins/rails')
-rw-r--r--plugins/rails/rails.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/rails/rails.plugin.zsh b/plugins/rails/rails.plugin.zsh
index a8ec79db2..1fd5f0f86 100644
--- a/plugins/rails/rails.plugin.zsh
+++ b/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 $@