Skip to content

Commit

Permalink
Merge pull request ohmyzsh#1672 from miry/rails3_command_fix
Browse files Browse the repository at this point in the history
Use new style of rails command.
  • Loading branch information
robbyrussell committed Aug 13, 2013
2 parents 39a5e36 + 2916ef7 commit f6dbe21
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion plugins/rails3/rails3.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit f6dbe21

Please sign in to comment.