2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Revert "Allow NotFound to specify an optional Location for the resource"

This reverts commit 4ae66c9e01.
This commit is contained in:
Robin Ward 2017-09-26 12:58:15 -04:00
parent e687a1e8e3
commit 460ed3c8cf
2 changed files with 3 additions and 25 deletions

View file

@ -74,13 +74,7 @@ module Discourse
end
# When something they want is not found
class NotFound < StandardError
attr_reader :location
def initialize(opts = nil)
opts ||= {}
@location = opts[:location]
end
end
class NotFound < StandardError; end
# When a setting is missing
class SiteSettingMissing < StandardError; end