From 0e44eb35d6e1b99ed624aaec839a03c12147f123 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 8 Apr 2010 12:01:15 -0700 Subject: fisting stack trace [#4349 state:resolved] Signed-off-by: Jeremy Kemper --- activesupport/lib/active_support/core_ext/module/delegation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support/core_ext') diff --git a/activesupport/lib/active_support/core_ext/module/delegation.rb b/activesupport/lib/active_support/core_ext/module/delegation.rb index b73f4c2b59..40a1866428 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 -- cgit v1.2.3