diff options
author | LFDM <1986gh@gmail.com> | 2014-01-10 22:52:18 +0100 |
---|---|---|
committer | LFDM <1986gh@gmail.com> | 2014-01-10 22:52:18 +0100 |
commit | a6671919ab2a5b0732dbc07d6f8becd9346917da (patch) | |
tree | 4f845d504a659540ed09530939d85718a1318ae8 /plugins | |
parent | e2838f75f0be001cf34da321c9c712d48699e518 (diff) | |
download | zsh-a6671919ab2a5b0732dbc07d6f8becd9346917da.tar.gz zsh-a6671919ab2a5b0732dbc07d6f8becd9346917da.tar.bz2 zsh-a6671919ab2a5b0732dbc07d6f8becd9346917da.zip |
Fixes _rails_command
Changes precedence of the conditional clause, more recent versions come
first now. Fixes problems when users update their app and still have
the old rails files inside of their file tree.
Closes #2405 - check the discussion there for further info.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/rails/rails.plugin.zsh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/rails/rails.plugin.zsh b/plugins/rails/rails.plugin.zsh index 23d15a9a1..210fdfcf7 100644 --- a/plugins/rails/rails.plugin.zsh +++ b/plugins/rails/rails.plugin.zsh @@ -1,10 +1,10 @@ function _rails_command () { - if [ -e "script/server" ]; then - ruby script/$@ + if [ -e "bin/rails" ]; then + bin/rails $@ elif [ -e "script/rails" ]; then ruby script/rails $@ - elif [ -e "bin/rails" ]; then - bin/rails $@ + elif [ -e "script/server" ]; then + ruby script/$@ else rails $@ fi |