FIX: Always serialize the correct attributes for DirectoryItems (PR #13510)

Pass in attributes to serialize into DirectoryItem serializer. Previous we had: attributes *DirectoryColumn.active_column_name which would never be re-evaluated in production so the payload would remain the same even after the active columns had changed.

I got this pattern from the activemodel serializer docs File: README — Documentation for active_model_serializers (0.1.0)

GitHub

We had attributes defined twice here so that was weird.

Hopefully this addresses the production issues once and for all!