905eb815fa380d561d23af33bbbda6175025c343
- Author
- David Librera <davidlibrera@gmail.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Check first for bin/stubs directory in _rails_command and _rake_command (#6372)
Diff
1diff --git a/plugins/rails/rails.plugin.zsh b/plugins/rails/rails.plugin.zsh
2index c8974b5f432e4a5d57c5fb93b4b1e8520da202b0..eb3f30360270b77048842d9519640a8d8f8c8d4a 100644
3--- a/plugins/rails/rails.plugin.zsh
4+++ b/plugins/rails/rails.plugin.zsh
5@@ -1,5 +1,7 @@
6 function _rails_command () {
7- if [ -e "bin/rails" ]; then
8+ if [ -e "bin/stubs/rails" ]; then
9+ bin/stubs/rails $@
10+ elif [ -e "bin/rails" ]; then
11 bin/rails $@
12 elif [ -e "script/rails" ]; then
13 ruby script/rails $@
14@@ -11,7 +13,9 @@ function _rails_command () {
15 }
16
17 function _rake_command () {
18- if [ -e "bin/rake" ]; then
19+ if [ -e "bin/stubs/rake" ]; then
20+ bin/stubs/rake $@
21+ elif [ -e "bin/rake" ]; then
22 bin/rake $@
23 elif type bundle &> /dev/null && [ -e "Gemfile" ]; then
24 bundle exec rake $@