Sha256: df41f26486859b4b17bc88b354791bac5dc12d02278fe4461fb61c013f8f9809
Contents?: true
Size: 522 Bytes
Versions: 10
Compression:
Stored size: 522 Bytes
Contents
require 'fun_with_json_api/exceptions/unauthorized_resource' module FunWithJsonApi module Exceptions # Indicates a Resource was unable to be used with performing an update class InvalidResource < FunWithJsonApi::Exceptions::UnauthorizedResource def initialize(message, payload = ExceptionPayload.new) payload = Array.wrap(payload).each do |invalid| invalid.title ||= I18n.t('invalid_resource', scope: 'fun_with_json_api.exceptions') end super end end end end
Version data entries
10 entries across 10 versions & 1 rubygems