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

ApplicationWrapper Prerequisite Issue #1852

Merged
merged 1 commit into from
Jan 5, 2015

Conversation

HamptonMakes
Copy link
Contributor

The Reloader and other classes assume that any mounted Padrino app has "prerequisites" (plural!) set, and uses that to figure out what files need to be reloaded. And, in the documentation, it says to MyApp.prerequisites << "somefile.rb" if you want to configure your application to reload/require new things.

This doesn't seem to break an actual Padrino app, as all the internal Padrino code (besides this) uses the plural. However, when I mount (and therefore wrap) my Grape::API application, reloading breaks, because there is no list of pluralized prerequisites to work with. Boo!

The Reloader and other classes assume that any mounted Padrino app has "prerequisites" (plural!) set, and uses that to figure out what files need to be reloaded. And, in the documentation, it says to ```MyApp.prerequisites << "somefile.rb"``` if you want to configure your application to reload/require new things. 

This doesn't seem to break an actual Padrino app, as all the internal Padrino code (besides this) uses the plural. However, when I mount (and therefore wrap) my Grape::API application, reloading breaks, because there is no list of pluralized prerequisites to work with. Boo!
@namusyaka
Copy link
Contributor

My bad. Sorry and thank you so much!

namusyaka added a commit that referenced this pull request Jan 5, 2015
ApplicationWrapper Prerequisite Issue
@namusyaka namusyaka merged commit af64434 into padrino:master Jan 5, 2015
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