Class: Spree::Api::V2::Tenant::VotingContestantsController
- Inherits:
-
BaseController
- Object
- ResourceController
- BaseController
- Spree::Api::V2::Tenant::VotingContestantsController
- Defined in:
- app/controllers/spree/api/v2/tenant/voting_contestants_controller.rb
Instance Method Summary collapse
-
#collection ⇒ Object
override.
-
#collection_serializer ⇒ Object
override.
Methods inherited from BaseController
#current_vendor, #render_serialized_payload, #require_tenant
Instance Method Details
#collection ⇒ Object
override
9 10 11 12 13 14 |
# File 'app/controllers/spree/api/v2/tenant/voting_contestants_controller.rb', line 9 def collection @collection ||= @voting_session .voting_contestants .includes(show_contestant: :show_contestant_images) .order(:id) end |
#collection_serializer ⇒ Object
override
17 18 19 |
# File 'app/controllers/spree/api/v2/tenant/voting_contestants_controller.rb', line 17 def collection_serializer Spree::V2::Tenant::VotingContestantSerializer end |