Add Rails 4 bin path
This commit is contained in:
parent
28e956691c
commit
45b6ac9402
1 changed files with 2 additions and 0 deletions
|
@ -38,6 +38,8 @@ alias rorx='_rails-command destroy'
|
||||||
function _rails-command {
|
function _rails-command {
|
||||||
if [[ -e "script/server" ]]; then
|
if [[ -e "script/server" ]]; then
|
||||||
ruby script/"$@"
|
ruby script/"$@"
|
||||||
|
elif [[ -e "bin/rails" ]]; then
|
||||||
|
ruby bin/rails "$@"
|
||||||
else
|
else
|
||||||
ruby script/rails "$@"
|
ruby script/rails "$@"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue