Skip to content

Instantly share code, notes, and snippets.

@wacko

wacko/wtf_patch.rb

Created Feb 14, 2014
Embed
What would you like to do?
Rails freezes when trying to generate a broken route
# 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
You can’t perform that action at this time.