Commit 9e8f417d authored by Marc Cornellà's avatar Marc Cornellà
Browse files

Merge pull request #4729 from sachin21/update_rake_command_in_rails_plugin

Support bundler
parents c1951892 06659f7f
...@@ -13,6 +13,8 @@ function _rails_command () { ...@@ -13,6 +13,8 @@ function _rails_command () {
function _rake_command () { function _rake_command () {
if [ -e "bin/rake" ]; then if [ -e "bin/rake" ]; then
bin/rake $@ bin/rake $@
elif type bundle &> /dev/null && [ -e "Gemfile" ]; then
bundle exec rake $@
else else
command rake $@ command rake $@
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