aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/module
diff options
context:
space:
mode:
authorGuo Xiang Tan <tgx_world@hotmail.com>2015-03-01 01:31:48 +0800
committerGuo Xiang Tan <tgx_world@hotmail.com>2015-03-01 01:31:48 +0800
commit1bc27a7e61535c81393cb17c72ca44063dbdc72b (patch)
treee521596b01f3774cb5561d327190846cd2007336 /activesupport/lib/active_support/core_ext/module
parent433d439b799be83ecafb4ebd0ed4c183fc28294c (diff)
downloadrails-1bc27a7e61535c81393cb17c72ca44063dbdc72b.tar.gz
rails-1bc27a7e61535c81393cb17c72ca44063dbdc72b.tar.bz2
rails-1bc27a7e61535c81393cb17c72ca44063dbdc72b.zip
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