All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Updating the Gemfile.lock
- Updating readme
- Adding
Jsonapi::Includemodule to handle dynamic includes like so:/posts?include=comments,author
- Raise
Jsonapi::InvalidAttributeErrorwhen attribute is invalid.
- Adding condition when spliting filter_params to prevent issue.
- Using
Array.wrapin apply_sort instead of[].flatten. - Adding specs on allowed sorted fields.
apply_filtercan now handle multiple matching with a comma separated list of values:/contacts?filter[first_name]=Bruce,Peter
- Add a changelog
- Add specs
- Add credits in README (https://github.com/guillaumebriday/jsonapi-scopes/commit/1f76b0ad822087a0305d102515946a756088d0c1)
apply_filteruse the methodallto generate an ActiveRecord collection.apply_sorthas now optional params.
- Remove 'attr_reader
onfilters`.