Skip to content

Conversation

y-yagi
Copy link
Member

@y-yagi y-yagi commented Jan 21, 2016

To avoid confusion, even Rails engines, I think that it may be able to run the rake task over the rails command. How about?

@rails-bot
Copy link

r? @matthewd

(@rails-bot has picked a reviewer for you, use r? to override)

@maclover7
Copy link
Contributor

cc @kaspth

end
end
end
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why can't we reuse the proxy from main Rails?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought too much or reuse, but it is almost the same when the review.
I'm sorry, and then modified to reuse the rake_proxy of Rails.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@y-yagi y-yagi force-pushed the rake_proxy_in_engine branch 3 times, most recently from 22b6013 to 6384cca Compare January 27, 2016 01:58
* Make rake proxy work in Rails engines.

*Yuji Yaginuma*

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't think this is CHANGELOG worthy, let's assume it worked in engines always.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay.

@kaspth kaspth assigned kaspth and unassigned matthewd Jan 30, 2016
@kaspth
Copy link
Contributor

kaspth commented Jan 30, 2016

Please rebase and squash your commits too 😁

@kaspth kaspth added this to the 5.0.0 milestone Jan 30, 2016
Rake.application.init('rails')
Rake.application.load_rakefile
@rake_tasks = Rake.application.tasks.select(&:comment)
end
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't rake_tasks included from the Rails::RakeProxy?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rails::RakeProxy#rake_tasks has become a prerequisite of the code that uses the Rails application, did not work for as it is the case of the Rails Engine, it was defined separately.

@y-yagi y-yagi force-pushed the rake_proxy_in_engine branch from 6384cca to 3ffa5a1 Compare January 31, 2016 00:50
@y-yagi
Copy link
Member Author

y-yagi commented Jan 31, 2016

Thanks for reviewing! Rebase and squash commits :)

kaspth added a commit that referenced this pull request Jan 31, 2016
make rake proxy work in rails engines
@kaspth kaspth merged commit 81052c8 into rails:master Jan 31, 2016
@kaspth
Copy link
Contributor

kaspth commented Jan 31, 2016

Thanks!

1 similar comment
@y-yagi
Copy link
Member Author

y-yagi commented Jan 31, 2016

Thanks!

@y-yagi y-yagi deleted the rake_proxy_in_engine branch January 31, 2016 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants