06659f7fc1455990d5aa0c37609e191839ad5be0

Author
Satoshi Ohmori <sachin21dev@gmail.com>
Committer
Satoshi Ohmori <sachin21dev@gmail.com>
Date

Message

Support bundler

Diff

 1diff --git a/plugins/rails/rails.plugin.zsh b/plugins/rails/rails.plugin.zsh
 2index 8af1d63017a2d344de7de09214f49ec26ecd45eb..5dfca49e9021f9d29c1a3b83b63f66bffdd91efb 100644
 3--- a/plugins/rails/rails.plugin.zsh
 4+++ b/plugins/rails/rails.plugin.zsh
 5@@ -13,6 +13,8 @@ function _rails_command () {
 6 function _rake_command () {
 7   if [ -e "bin/rake" ]; then
 8     bin/rake $@
 9+  elif type bundle &> /dev/null && [ -e "Gemfile" ]; then
10+    bundle exec rake $@
11   else
12     command rake $@
13   fi