class FunWithJsonApi::Exceptions::InvalidResource

Indicates a Resource was unable to be used with performing an update

Public Class Methods

new(message, payload = ExceptionPayload.new) click to toggle source
# File lib/fun_with_json_api/exceptions/invalid_resource.rb, line 7
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