1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #17639 from gsamokovarov/faster-exception-wrapper-traces

Don't double check trace origin in ExceptionWrapper#traces
This commit is contained in:
Guillermo Iguaran 2014-11-16 14:26:28 -05:00
commit 7830bb0d9d

View file

@ -65,8 +65,12 @@ module ActionDispatch
full_trace.each_with_index do |trace, idx|
trace_with_id = { id: idx, trace: trace }
appplication_trace_with_ids << trace_with_id if application_trace.include?(trace)
framework_trace_with_ids << trace_with_id if framework_trace.include?(trace)
if application_trace.include?(trace)
appplication_trace_with_ids << trace_with_id
else
framework_trace_with_ids << trace_with_id
end
full_trace_with_ids << trace_with_id
end