1
vote
1answer
14 views
+50
Sideloading conditionally with ActiveModel::Serializers
I'm building an API using ActiveModel::Serializers. What is the best way to sideload data conditionally using params?
So I can make requests like GET /api/customers:
"customers": {
"first_name": ...