浏览代码

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.
LFDM 11 年之前
父节点
当前提交
a6671919ab
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      plugins/rails/rails.plugin.zsh

+ 4 - 4
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