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

Fix missing date_parser require #108

Merged
merged 1 commit into from
Feb 9, 2017

Conversation

chao-xian
Copy link
Contributor

We have some classes used by the rails app inside of lib. Controllers
explicitly require these classes but in this case the AnonymousFeedbackController
didn’t.

This was causing an error when running locally, but doesn’t surface on
deployed environments because they run in production mode which will
eager load.

In lieu of refactoring to put these classes in the app folder, this just
updates the controller to require the DateParser class.

We have some classes used by the rails app inside of lib. Controllers
explicitly require these classes but in this case the AnonymousFeedbackController
didn’t.

This was causing an error when running locally, but doesn’t surface on
deployed environments because they run in production mode which will
eager load.

In lieu of refactoring to put these classes in the app folder, this just
updates the controller to require the DateParser class.
@neilvanbeinum
Copy link

Looks good, thanks for fixing!

@chao-xian
Copy link
Contributor Author

Awesome! Thanks for checking @NeilVB (Cc @theleebriggs)

@chao-xian chao-xian merged commit 14aaf67 into master Feb 9, 2017
@barrucadu barrucadu deleted the fix-missing-require-of-date-parser branch April 27, 2018 12:41
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