Class: JsonApiClient::Query::Builder
- Inherits:
-
Object
- Object
- JsonApiClient::Query::Builder
- Defined in:
- lib/patches/json_api_client/builder.rb
Direct Known Subclasses
FlexCommerceApi::JsonApiClientExtension::Builder, FlexCommerceApi::JsonApiClientExtension::RemoteBuilder
Instance Method Summary collapse
-
#last ⇒ Object
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.
Instance Method Details
#last ⇒ Object
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 |