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

Add lib folder path to eager_load_paths #3465

Merged
merged 1 commit into from
Apr 29, 2019
Merged

Add lib folder path to eager_load_paths #3465

merged 1 commit into from
Apr 29, 2019

Conversation

voodoorai2000
Copy link
Member

References

Backport: AyuntamientoMadrid@99ba7a6

Context

We are seeing an exception related to trying to modify a frozen array when deploy apps to heroku.

Objectives

Use the correct Rails5 syntax to add lib to the path.

Because autoloading is disabled in production with Rails 5,
using autoload_paths will not load needed classes from
specified paths. The solution to this, is to ask Rails
to eager load classes.

https://sipsandbits.com/2017/02/14/upgrading-a-ruby-on-rails-application/
@voodoorai2000 voodoorai2000 merged commit f5794a9 into master Apr 29, 2019
@voodoorai2000 voodoorai2000 deleted the rails5_paths branch April 29, 2019 23: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.

None yet

2 participants