Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use rake to invoke rake tasks, not rails #130

Merged
merged 1 commit into from
May 13, 2020
Merged

Conversation

mattbrictson
Copy link
Owner

The documentation for tomo's rake helper, and the intent of that method, is that it runs bundle exec rake. However this rake helper was in fact running bundle exec rails instead. This was a mistake.

Fix this so that the rake helper, and tasks that depend on it (e.g. rails:db_migrate, rails:db_seed, etc.) use bundle exec rake instead of bundle exec rails as originally intended.

This also makes tomo compatible with older versions of Rails, before the rails was smart enough to be able to invoke rake tasks.

The documentation for tomo's `rake` helper, and the intent of that
method, is that it runs `bundle exec rake`. However this `rake` helper
was in fact running `bundle exec rails` instead. This was a mistake.

Fix this so that the `rake` helper, and tasks that depend on it (e.g.
`rails:db_migrate`, `rails:db_seed`, etc.) use `bundle exec rake`
instead of `bundle exec rails` as originally intended.

This also makes tomo compatible with older versions of Rails, before the
`rails` was smart enough to be able to invoke rake tasks.
@mattbrictson mattbrictson added the 🐛 Bug Fix Fixes a bug label May 13, 2020
@mattbrictson mattbrictson merged commit 88e9d75 into master May 13, 2020
@mattbrictson mattbrictson deleted the bugs/rake-not-rails branch May 13, 2020 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Fix Fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant