mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
removing useless exmaple lines
This commit is contained in:
parent
420f7959c0
commit
456f9158ca
@ -43,7 +43,6 @@ class PostSerializer < ActiveModel::Serializer
|
|||||||
has_many :comments
|
has_many :comments
|
||||||
has_one :author
|
has_one :author
|
||||||
|
|
||||||
url :post
|
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -55,7 +54,6 @@ class CommentSerializer < ActiveModel::Serializer
|
|||||||
|
|
||||||
belongs_to :post_id
|
belongs_to :post_id
|
||||||
|
|
||||||
url [:post, :comment]
|
|
||||||
end
|
end
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user