Created
August 23, 2011 08:49
-
-
Save mjtko/1164685 to your computer and use it in GitHub Desktop.
ActionDispatch monkey patch
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
module ActionDispatch | |
class ShowExceptions | |
private | |
# override public_path, because keeping static error pages in | |
# <Rails.root>/public is, well, ridiculous, as they can be | |
# statically accessed. It's. Just. Wrong. | |
def public_path | |
"#{Rails.root}/config/errors" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment