Skip to content

Commit dde5f6a

Browse files
committed
chore: adjust autoload path for Rails 8
1 parent cd9fea0 commit dde5f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/better_together/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Engine < ::Rails::Engine
4444
isolate_namespace BetterTogether
4545

4646
# Avoid modifying frozen autoload path arrays (Rails 8 compatibility)
47-
config.autoload_paths = Array(config.autoload_paths) + Dir["#{root}/lib/better_together/**/"]
47+
paths.add 'lib', eager_load: true
4848

4949
config.generators do |g|
5050
g.orm :active_record, primary_key_type: :uuid

0 commit comments

Comments
 (0)