Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move DebugExceptions#traces_from_wrapper to ExceptionWrapper #17480

Merged
merged 1 commit into from
Nov 4, 2014

Conversation

gsamokovarov
Copy link
Contributor

ActionDispatch::ExceptionWrapper seems to be the more natural place for
this method to live in. Pinging @bronzle as he recently fixed an issue in this
method.

appplication_trace_with_ids << trace_with_id if application_trace.include?(trace)
framework_trace_with_ids << trace_with_id if framework_trace.include?(trace)
full_trace_with_ids << trace_with_id
end if full_trace
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer to keep if with block version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point, changed it only for consistency with #source_extract.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change both. It is easier to see that there is a conditional when it is on the beginning of the line.

ActionDispatch::ExceptionWrapper seems to be the more natural place for
this method to live in.
rafaelfranca added a commit that referenced this pull request Nov 4, 2014
Move DebugExceptions#traces_from_wrapper to ExceptionWrapper
@rafaelfranca rafaelfranca merged commit 8602fc5 into rails:master Nov 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants