Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zeitwerk breaks the override pattern e.g expected file /get-help-to-retrain/app/admin/categories.rb to define constant Categories, but didn't (NameError), we need to ignore the exceptions. This approach clashes with ActiveAdmin in our case, as all related files live under /admin but do not have the expected structure. The fix is to ignore the files that break this expected behaviour, by doing something like: Rails.autoloaders.main.ignore("#{Rails.root}/app/admin") Resource: rails/rails#36100
- Loading branch information
Octavian Neguletu
committed
Sep 2, 2019
1 parent
0bbb0ed
commit 9243ec3
Showing
3 changed files
with
7 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters