diff options
author | Guo Xiang Tan <tgx_world@hotmail.com> | 2015-03-01 01:31:48 +0800 |
---|---|---|
committer | Guo Xiang Tan <tgx_world@hotmail.com> | 2015-03-01 01:31:48 +0800 |
commit | 1bc27a7e61535c81393cb17c72ca44063dbdc72b (patch) | |
tree | e521596b01f3774cb5561d327190846cd2007336 /activesupport | |
parent | 433d439b799be83ecafb4ebd0ed4c183fc28294c (diff) | |
download | rails-1bc27a7e61535c81393cb17c72ca44063dbdc72b.tar.gz rails-1bc27a7e61535c81393cb17c72ca44063dbdc72b.tar.bz2 rails-1bc27a7e61535c81393cb17c72ca44063dbdc72b.zip |
Reduce allocated memory for Module#delegate.
Diffstat (limited to 'activesupport')
-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 |