Created
February 14, 2014 15:49
-
-
Save wacko/9003396 to your computer and use it in GitHub Desktop.
Rails freezes when trying to generate a broken route
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Related: https://github.com/rails/rails/issues/1525#issuecomment-1782439 | |
| # Rails freezes when | |
| module ActionDispatch | |
| module Routing | |
| class RouteSet | |
| def inspect | |
| # The solution is... to throw a random exception (to halt the normal flow, I think) | |
| wtf! | |
| end | |
| end | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment