Skip to content

Commit fdf2797

Browse files
committed
hotfix: zeitwerk autoloading error for av_player/track_extensions
Excludes lib/av_player from autoloading as it doesn't follow the paradigm that Zeitwerk expects for autoloading (it extends BerkeleyLibrary::AV::Track, and there is not a corresponding AvPlayer::TrackExtensions)
1 parent 305ec31 commit fdf2797

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

config/application.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,10 @@ class Application < Rails::Application
2222
# Please, add to the `ignore` list any other `lib` subdirectories that do
2323
# not contain `.rb` files, or that should not be reloaded or eager loaded.
2424
# Common ones are `templates`, `generators`, or `middleware`, for example.
25-
config.autoload_lib(ignore: %w[assets tasks])
25+
#
26+
# We exclude `av_player` because an initializer to loads it. Otherwise,
27+
# autoloading blows up with a NameError for AvPlayer::TrackExtensions.
28+
config.autoload_lib(ignore: %w[assets tasks av_player])
2629

2730
# ############################################################
2831
# Application settings

0 commit comments

Comments
 (0)