Commit a6671919 authored by LFDM's avatar LFDM
Browse files

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.
parent e2838f75
function _rails_command () { function _rails_command () {
if [ -e "script/server" ]; then if [ -e "bin/rails" ]; then
ruby script/$@ bin/rails $@
elif [ -e "script/rails" ]; then elif [ -e "script/rails" ]; then
ruby script/rails $@ ruby script/rails $@
elif [ -e "bin/rails" ]; then elif [ -e "script/server" ]; then
bin/rails $@ ruby script/$@
else else
rails $@ rails $@
fi fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment