Closed
Description
-
It would be awesome if the docs could be updated to show how to use AMS outside of a controller. If you want to do some checking in the console, it's not clear how to view serializer output. I believe it comes down to creating the eg.
ArticleSerializer
object and passing it to an ie.FlatternJsonAdapter
but I can never remember how to do it - and I can't quickly find it even now. -
Is there a way to get the default serializer for a class, like how
render json: @article
automatically knows how to get theArticleSerializer
? I tried looking through the source for AMS but got lost. It seems theget_serializer
method might be the key but it seems to only be able to be called from within a controller.
Metadata
Metadata
Assignees
Labels
No labels