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

Remove rake_tasks block in engine #110

Merged
merged 1 commit into from
Mar 12, 2015

Conversation

BlakeWilliams
Copy link
Contributor

When the rake_tasks block is present and loading tasks it causes the
tasks to be loaded twice and runs them twice each time they are called.

Since ember-cli-rails uses an engine instead of a Railtie, it will load tasks for us: https://github.com/rails/rails/blob/4e0ec961e1f81ef672e2728b8650e4358962962f/railties/lib/rails/engine/configuration.rb#L52
https://github.com/rails/rails/blob/4e0ec961e1f81ef672e2728b8650e4358962962f/railties/lib/rails/engine.rb#L32

When the `rake_tasks` block is present and loading tasks it causes the
tasks to be loaded twice and runs them twice each time they are called.
rwz added a commit that referenced this pull request Mar 12, 2015
@rwz rwz merged commit c9331e4 into tricknotes:master Mar 12, 2015
@rwz
Copy link
Collaborator

rwz commented Mar 12, 2015

👍

@BlakeWilliams BlakeWilliams deleted the bmw-remove-rake-block branch March 12, 2015 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants