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

This reverts commit 4ae66c9e01cfd04f78d499df8d2078f41ae42ccc.
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