Merge pull request #19131 from tgxworld/reduce_allocated_memory_in_module_delegate
Reduce allocated memory for Module#delegate.
This commit is contained in:
commit
daa455f5ca
@ -167,7 +167,7 @@ def delegate(*methods)
|
||||
''
|
||||
end
|
||||
|
||||
file, line = caller.first.split(':', 2)
|
||||
file, line = caller(1, 1).first.split(':', 2)
|
||||
line = line.to_i
|
||||
|
||||
to = to.to_s
|
||||
|
Loading…
Reference in New Issue
Block a user