Fix active-model-serializer error when controller doesn't inherit from ActionController::Base. When inheriting from ActionController::Metal serializers were not working properly