Class: Spree::V2::Tenant::MyVoteSerializer
- Inherits:
-
BaseSerializer
- Object
- BaseSerializer
- Spree::V2::Tenant::MyVoteSerializer
- Defined in:
- app/serializers/spree/v2/tenant/my_vote_serializer.rb
Overview
Serializes a VotingContestant together with the current user's own vote tally (my_vote_count) for that contestant in a voting session.
my_vote_count is a virtual attribute (see VotingContestant) that the controller sets on each record before serialization — see MyVotesController#collection.