FIX: absolute_path may be nil for code added via instance_eval

This commit is contained in:
Sam 2014-12-01 12:35:16 +11:00
parent 6874133f9e
commit 6edc26f47e

@ -351,7 +351,7 @@ def inherited(base)
base.called_from = begin
call_stack = if Kernel.respond_to?(:caller_locations)
caller_locations.map(&:absolute_path)
caller_locations.map { |l| l.absolute_path || l.path }
else
# Remove the line number from backtraces making sure we don't leave anything behind
caller.map { |p| p.sub(/:\d+.*/, '') }