README.md in restpack_serializer-0.2.12 vs README.md in restpack_serializer-0.2.13
- old
+ new
@@ -152,10 +152,10 @@
```ruby
class AlbumSerializer
include RestPack::Serializer
attributes :id, :title, :year, :artist_id, :href
-
+
can_include :songs, :artists
end
```
In this example, we are allowing related `songs` and `artists` to be included in API responses. Side-loads can be specifed by using the `includes` parameter: