mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
80fb20816c
correct 404 handling for invalid pages
9 lines
199 B
Ruby
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
|