mercredi 29 novembre 2017

How to prevent Ember Data from saving a read-only attribute for ActiveModelSerializer

I am trying to use the {readOnly: true} functionality with ActiveModelSerializer by customizing the serialize method to ignore readOnly attributes like this for JSONAPISerializer or this for RESTSerializer, to prematurely save on upload bandwidth.

Does anyone know if something similar can be done with ActiveModelSerializer?




Aucun commentaire:

Enregistrer un commentaire