Class: JsonApiClient::Query::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/patches/json_api_client/builder.rb

Instance Method Summary collapse

Instance Method Details

#lastObject

This is a workaround because in the json_api_client gem they now parse the “last” link instead of the original behaviour: github.com/JsonApiClient/json_api_client/blob/v1.5.3/lib/json_api_client/query/builder.rb#L69 This causes an error when Faraday parses our params due to the filter param appearing to be malformed.

TODO: Look at fixing our links so that we can remove this workaround (platform ticket #7293)



12
13
14
# File 'lib/patches/json_api_client/builder.rb', line 12

def last
  self.to_a.last
end