aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2015-02-28 19:26:36 +0100
committerYves Senn <yves.senn@gmail.com>2015-02-28 19:26:36 +0100
commitdaa455f5ca866ab6a0e34e094e4e4eb3f77bfea1 (patch)
tree8d57d089844f77fc32c2acf90006618e1bdbf09c /activesupport/lib/active_support/core_ext/module
parentcd545d2399c27c76aa956c6844e38669451bafd1 (diff)
parent1bc27a7e61535c81393cb17c72ca44063dbdc72b (diff)
downloadrails-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.
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module')
-rw-r--r--activesupport/lib/active_support/core_ext/module/delegation.rb2
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