Class: Spree::Api::V2::Tenant::MyVotesController
- Inherits:
-
BaseController
- Object
- ResourceController
- BaseController
- Spree::Api::V2::Tenant::MyVotesController
- Defined in:
- app/controllers/spree/api/v2/tenant/my_votes_controller.rb
Overview
Returns the session's contestants each annotated with the current user's own vote tally (my_vote_count).
Kept separate from the public VotingContestantsController — that endpoint does not require an authenticated user and is cacheable, whereas this one is strictly per-user and must never be cached.
Instance Method Summary collapse
Methods inherited from BaseController
#current_vendor, #render_serialized_payload, #require_tenant, #scope
Instance Method Details
#show ⇒ Object
15 16 17 18 19 |
# File 'app/controllers/spree/api/v2/tenant/my_votes_controller.rb', line 15 def show render_serialized_payload do serialize_collection(collection) end end |