Skip to content

Conversation

@sh19910711
Copy link

@sh19910711 sh19910711 commented Jun 10, 2016

If an error happens inside the framework before loading our application, the ActionDispatch shows traces for the framework. It could be outside of Rails.root, so we have to fallback to the first one. This pull request changes the Session class to use the first binding when there is no application binding.

Thank you.

If an error happens inside the framework before loading application,
the ActionDispatch::ExceptionWrapper shows traces for the framework only.
It could be outside of "Rails.root", and so we have to fallback to the first one.
@rails-bot
Copy link

r? @gsamokovarov

(@rails-bot has picked a reviewer for you, use r? to override)

@gsamokovarov
Copy link
Collaborator

Can we write a test for that as well?

@sh19910711
Copy link
Author

I have added a test 👍

@gsamokovarov
Copy link
Collaborator

Thanks!

@gsamokovarov gsamokovarov merged commit 96aa4cb into rails:master Jun 10, 2016
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.

3 participants