Skip to content

Commit

Permalink
Fix Marshal.load ArgumentError on ruby3.3
Browse files Browse the repository at this point in the history
```
config/initializers/marshal_autoloader.rb:6:in `load': wrong number of arguments (given 2, expected 1) (ArgumentError)
	from /usr/lib/ruby/3.3.0/rdoc/store.rb:974:in `block in marshal_load'
	from /usr/lib/ruby/3.3.0/rdoc/store.rb:974:in `open'
```
  • Loading branch information
agrare committed Oct 2, 2024
1 parent 2c6cd3c commit abc8013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/marshal_autoloader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# processes or load just the classes that are marshaled, which may be far less classes and locations than when
# we originally wrote this initializer.
module MarshalAutoloader
def load(data)
def load(data, _proc = nil)
super
rescue ArgumentError => error
if error.to_s.include?('undefined class')
Expand Down

0 comments on commit abc8013

Please sign in to comment.