Set custom serializer for associations from block