String to symbol

This commit is contained in:
Kristoffer 2014-09-02 22:23:58 +02:00
parent 922dd273c9
commit 4abcd3209e

View File

@ -521,7 +521,7 @@ to `comments` underneath a `links` key:
class PostSerializer < ActiveModel::Serializer
attributes :id, :title, :body
has_many :comments, embed: ids, embed_namespace: :links
has_many :comments, embed: :ids, embed_namespace: :links
end
```