Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2421 from LFDM/rails_plugin_fix

Fixes _rails_command in new rails plugin
  • Loading branch information...
commit d0dcedcde20b341121bc7917493fca8f323727e2 2 parents 7c95518 + a667191
@robbyrussell authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 plugins/rails/rails.plugin.zsh
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.