Merge pull request #1672 from miry/rails3_command_fix

Use new style of rails command.
This commit is contained in:
Robby Russell 2013-08-13 06:21:14 -07:00
commit f6dbe212e8
1 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,11 @@ function _rails_command () {
if [ -e "script/server" ]; then
ruby script/$@
else
ruby script/rails $@
if [ -e "bin/rails" ]; then
bin/rails $@
else
rails $@
fi
fi
}