class JsonApiClient::Query::Builder

Public Instance Methods

last() click to toggle source

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)

# File lib/patches/json_api_client/builder.rb, line 12
def last
  self.to_a.last
end