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

Removing Router from autoload, API already loads it #1750

Merged
merged 1 commit into from
Mar 13, 2018
Merged

Removing Router from autoload, API already loads it #1750

merged 1 commit into from
Mar 13, 2018

Conversation

salasrod
Copy link
Contributor

Fix #1663

Routes are already being eagerly loaded by grape/lib/grape/api.rb:1.

@grape-bot
Copy link

grape-bot commented Mar 13, 2018

1 Warning
⚠️ There’re library changes, but not tests. That’s OK as long as you’re refactoring existing code.

Generated by 🚫 danger

@dblock
Copy link
Member

dblock commented Mar 13, 2018

Before I merge this - is there a way to reproduce this in tests? Maybe an integration test that looks for any kind of warnings on a require? Like one of these: https://github.com/ruby-grape/grape/tree/master/spec/integration

@dblock dblock merged commit ee43a64 into ruby-grape:master Mar 13, 2018
@dblock
Copy link
Member

dblock commented Mar 13, 2018

I'm actually going to merge this since I think those tests might be hard, but I appreciate if you could give it a try @salasrod - consider it a challenge! :)

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.

3 participants