Fix Documentation of Meta Per Resource

Some part of the documentation for this got removed during last merge, so fixing it.
This commit is contained in:
Manoj M J 2018-11-15 13:40:18 +05:30 committed by Shishir Kakaraddi
parent fdcaed6f0d
commit a160d6746f

View File

@ -276,7 +276,12 @@ This will create a `self` reference for the relationship, and a `related` link f
### Meta Per Resource
For every resource in the collection, you can include a meta object containing non-standard meta-information about a resource that can not be represented as an attribute or relationship.
```ruby
class MovieSerializer
include FastJsonapi::ObjectSerializer
meta do |movie|
{
years_since_release: Date.current.year - movie.year