Sunday, 15 April 2012

How to serialize two 'has_one' model using activerecord -



How to serialize two 'has_one' model using activerecord -

i have 2 has_one models (from_airport , to_airport) gets values model 'airport'.

how embed ids of from_airport , to_airport , include airport objects using active model serializers , include airport object using active model serializer.

active-model-serializers

No comments:

Post a Comment