diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-04-08 12:01:15 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-08 12:03:57 -0700 |
commit | 0e44eb35d6e1b99ed624aaec839a03c12147f123 (patch) | |
tree | 3b0c699f1b379450fe228f2f41419ebb79e3b370 /activesupport/lib/active_support/core_ext/module/delegation.rb | |
parent | 00ee9b33698715fb9265a227715a443e21762ea1 (diff) | |
download | rails-0e44eb35d6e1b99ed624aaec839a03c12147f123.tar.gz rails-0e44eb35d6e1b99ed624aaec839a03c12147f123.tar.bz2 rails-0e44eb35d6e1b99ed624aaec839a03c12147f123.zip |
fisting stack trace [#4349 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activesupport/lib/active_support/core_ext/module/delegation.rb')
-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 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 |