File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ module CodeLearnApi
1010 class Application < Rails ::Application
1111 # Initialize configuration defaults for originally generated Rails version.
1212 config . load_defaults 7.0
13-
13+
1414 # Disable freezing of autoload_paths and eager_load_paths for Rails 8.1 compatibility
1515 # with older gems that try to modify these arrays
1616 config . autoloader = :zeitwerk
Original file line number Diff line number Diff line change 66# Monkey patch Array to prevent freezing errors in Rails 8.1
77# This allows older gems to modify frozen autoload_paths arrays
88class Array
9- alias_method : original_freeze, : freeze
9+ alias original_freeze freeze
1010
1111 def freeze
1212 # Check if this array is being set as autoload_paths or eager_load_paths
You can’t perform that action at this time.
0 commit comments