class FunWithJsonApi::Exceptions::MissingRelationship
Indicates a Supplied relationships value is not able to be found
Public Class Methods
new(message, payload = ExceptionPayload.new)
click to toggle source
Calls superclass method
FunWithJsonApi::Exception::new
# File lib/fun_with_json_api/exceptions/missing_relationship.rb, line 5 def initialize(message, payload = ExceptionPayload.new) payload = Array.wrap(payload).each do |missing| missing.code ||= 'missing_relationship' missing.title ||= I18n.t(:missing_relationship, scope: 'fun_with_json_api.exceptions') missing.status ||= '404' end super end