forked from extern/ohmyzsh
Merge pull request #2421 from LFDM/rails_plugin_fix
Fixes _rails_command in new rails plugin
This commit is contained in:
commit
d0dcedcde2
@ -1,10 +1,10 @@
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user