discourse/app/controllers/exceptions_controller.rb

10 lines
214 B
Ruby
Raw Normal View History

2013-02-06 03:16:51 +08:00
class ExceptionsController < ApplicationController
skip_before_filter :check_xhr, :preload_json
2013-02-06 03:16:51 +08:00
def not_found
# centralize all rendering of 404 into app controller
raise Discourse::NotFound
2013-02-06 03:16:51 +08:00
end
2013-02-06 03:16:51 +08:00
end