Skip to content

Instantly share code, notes, and snippets.

@mjtko
Created August 23, 2011 08:49
Show Gist options
  • Save mjtko/1164685 to your computer and use it in GitHub Desktop.
Save mjtko/1164685 to your computer and use it in GitHub Desktop.
ActionDispatch monkey patch
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