mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Merge pull request #2085 from tricknotes/fix-doc
Fix example code in `doc/general/getting_started.md`
This commit is contained in:
commit
d24a7867b9
@ -37,7 +37,7 @@ and
|
|||||||
class CommentSerializer < ActiveModel::Serializer
|
class CommentSerializer < ActiveModel::Serializer
|
||||||
attributes :name, :body
|
attributes :name, :body
|
||||||
|
|
||||||
belongs_to :post_id
|
belongs_to :post
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user