Created
March 11, 2012 23:29
-
-
Save armstrjare/2018671 to your computer and use it in GitHub Desktop.
This file contains 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
# Monkey-patch routing layer to prevent Rails blindly using Object#inspect in generating error messages. | |
# This fixes super slow error responses on our app which has a large set of routes :) | |
# FIXME: We should remove this once Rails fixes this issue. | |
module ActionDispatch | |
module Routing | |
class RouteSet | |
alias inspect to_s | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment