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::Include
module to handle dynamic includes like so:/posts?include=comments,author
- Raise
Jsonapi::InvalidAttributeError
when attribute is invalid.
- Adding condition when spliting filter_params to prevent issue.
- Using
Array.wrap
in apply_sort instead of[].flatten
. - Adding specs on allowed sorted fields.
apply_filter
can 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_filter
use the methodall
to generate an ActiveRecord collection.apply_sort
has now optional params.
- Remove 'attr_reader
on
filters`.