Add tests for fields option demonstrating usage on both attributes and relationships (#1839)

* add test for fields whitelisting relationships, and use the JSON API Include Directive to do the heavy lifting
This commit is contained in:
L. Preston Sego III
2016-08-17 17:12:12 -04:00
committed by Benjamin Fleischer
parent 1896e5a525
commit a319fef239
3 changed files with 79 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ Fixes:
- [#1881](https://github.com/rails-api/active_model_serializers/pull/1881) ActiveModelSerializers::Model correctly works with string keys (@yevhene)
Misc:
- [#1839](https://github.com/rails-api/active_model_serializers/pull/1839) `fields` tests demonstrating usage for both attributes and relationships. (@NullVoxPopuli)
- [#1878](https://github.com/rails-api/active_model_serializers/pull/1878) Cache key generation for serializers now uses `ActiveSupport::Cache.expand_cache_key` instead of `Array#join` by default and is also overridable. This change should be backward-compatible. (@markiz)