Skip to content

Commit 0795355

Browse files
committed
Fix Zeitwerk error when Pathname added to paths
The previous example added a Pathname to `autoload_once_paths`, which raises an error on boot: ``` loader wants to manage directory /home/hartley/test/eight/app/serializers, which is already managed by loader ``` so the example is updated to match the one in Autoloading and Reloading Constants.
1 parent d8e16d6 commit 0795355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

guides/source/active_job_basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ to set-up serializers to be loaded only once, e.g. by amending `config/applicati
636636
# config/application.rb
637637
module YourApp
638638
class Application < Rails::Application
639-
config.autoload_once_paths << Rails.root.join('app', 'serializers')
639+
config.autoload_once_paths << "#{root}/app/serializers"
640640
end
641641
end
642642
```

0 commit comments

Comments
 (0)