mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
When using the relationships DSL with a block e.g. has_one :bio do link :self, "some_link" end the "data" field would be rendered with a nil value even though the bio is not nil. This happened because the block return value was set to nil but used as a value for the "data" field. |
||
|---|---|---|
| .. | ||
| json | ||
| json_api | ||
| fragment_cache_test.rb | ||
| json_test.rb | ||
| null_test.rb | ||