How to pass variables to ActiveModel Serializers from the controller

Sometimes, when you're building a Ruby on Rails API with Serializers, you want to pass a variable into the serializer from the controller Continue reading “How to pass variables to ActiveModel Serializers from the controller”