forked from charlotte-ruby/impressionist
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autoload issue with ImpressionistController (#2)
Instead of depending on autoload to bring in the ImpressionistController constant, we manually bring it with a call to require and just move that file to lib. Prior to this, Rails would emit a warning on startup about needing to use autoload durning an initializer like this, letting us know that a future version of Rails will error. This should hopefully remove that error and still allow these controller mixins to be available. Note that Rails 7.1 will eventually be a future blocker here. PS. This is the recommended approach by Xavier here: charlotte-ruby#305 Co-authored-by: stefannibrasil <[email protected]>
- Loading branch information
1 parent
b02be39
commit 59c8f00
Showing
4 changed files
with
25 additions
and
25 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
File renamed without changes.
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