Sha256: 9229dec964697ba73483b669f0fedf0665ecabcb2f59a17935ebd85cb633daf7
Contents?: true
Size: 514 Bytes
Versions: 23
Compression:
Stored size: 514 Bytes
Contents
module FunWithJsonApi module Exceptions # Indicates a Resource or Collection item was not able to be found class MissingResource < FunWithJsonApi::Exception def initialize(message, payload = ExceptionPayload.new) payload = Array.wrap(payload).each do |missing| missing.code ||= 'missing_resource' missing.title ||= I18n.t('missing_resource', scope: 'fun_with_json_api.exceptions') missing.status ||= '404' end super end end end end
Version data entries
23 entries across 23 versions & 1 rubygems