diff options
author | Yves Senn <yves.senn@gmail.com> | 2015-02-28 19:26:36 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2015-02-28 19:26:36 +0100 |
commit | daa455f5ca866ab6a0e34e094e4e4eb3f77bfea1 (patch) | |
tree | 8d57d089844f77fc32c2acf90006618e1bdbf09c | |
parent | cd545d2399c27c76aa956c6844e38669451bafd1 (diff) | |
parent | 1bc27a7e61535c81393cb17c72ca44063dbdc72b (diff) | |
download | rails-daa455f5ca866ab6a0e34e094e4e4eb3f77bfea1.tar.gz rails-daa455f5ca866ab6a0e34e094e4e4eb3f77bfea1.tar.bz2 rails-daa455f5ca866ab6a0e34e094e4e4eb3f77bfea1.zip |
Merge pull request #19131 from tgxworld/reduce_allocated_memory_in_module_delegate
Reduce allocated memory for Module#delegate.
-rw-r--r-- | activesupport/lib/active_support/core_ext/module/delegation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/module/delegation.rb b/activesupport/lib/active_support/core_ext/module/delegation.rb index a5f4d03256..9b7a429db9 100644 --- a/activesupport/lib/active_support/core_ext/module/delegation.rb +++ b/activesupport/lib/active_support/core_ext/module/delegation.rb @@ -167,7 +167,7 @@ class Module '' end - file, line = caller.first.split(':', 2) + file, line = caller(1, 1).first.split(':', 2) line = line.to_i to = to.to_s |