Method: JSONAPI::Resource#custom_links

Defined in:
lib/jsonapi/resource.rb

Override this to return custom links must return a hash, which will be merged with the default { self: ‘self-url’ } links hash links keys will be not be formatted with the key formatter for the serializer by default. They can however use the serializer’s format_key and format_value methods if desired the _options hash will contain the serializer and the serialization_options



164
165
166
# File 'lib/jsonapi/resource.rb', line 164

def custom_links(_options)
  {}
end