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