This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
discourse/app/controllers/exceptions_controller.rb
Sam 80fb20816c get rid of nonsense 404.html
correct 404 handling for invalid pages
2013-05-20 10:29:49 +10:00

9 lines
199 B
Ruby

class ExceptionsController < ApplicationController
skip_before_filter :check_xhr
def not_found
# centralize all rendering of 404 into app controller
raise Discourse::NotFound
end
end