mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06: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_one :author
|
||||
|
||||
url :post
|
||||
end
|
||||
```
|
||||
|
||||
@ -55,7 +54,6 @@ class CommentSerializer < ActiveModel::Serializer
|
||||
|
||||
belongs_to :post_id
|
||||
|
||||
url [:post, :comment]
|
||||
end
|
||||
```
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user