Exception: MediaTypes::Serialization::NoSelfLinkProvidedError

Inherits:
ConfigurationError show all
Defined in:
lib/media_types/serialization/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(media_type_identifier) ⇒ NoSelfLinkProvidedError

Returns a new instance of NoSelfLinkProvidedError.



141
142
143
# File 'lib/media_types/serialization/error.rb', line 141

def initialize(media_type_identifier)
  super("Tried to render an index of '#{media_type_identifier}' elements but the serializer did not return a :self link for me to use. Please call 'link rel: :self, href: 'https://...' in the #{media_type_identifier} serializer.")
end