From 837d9ddfafc7ffb25e9b58a73310eb56d2e5217c Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 8 Apr 2010 12:01:15 -0700 Subject: [PATCH] fisting stack trace [#4349 state:resolved] --- .../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 b73f4c2..40a1866 100644 --- a/activesupport/lib/active_support/core_ext/module/delegation.rb +++ b/activesupport/lib/active_support/core_ext/module/delegation.rb @@ -126,7 +126,7 @@ class Module %(raise "#{self}##{prefix}#{method} delegated to #{to}.#{method}, but #{to} is nil: \#{self.inspect}") end - module_eval(<<-EOS, file, line) + module_eval(<<-EOS, file, line - 5) if instance_methods(false).map(&:to_s).include?("#{prefix}#{method}") remove_possible_method("#{prefix}#{method}") end -- 1.6.6