From ff67dbed2b2878ba0d8032bdde08e06bc0eead3e Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 11 Jan 2020 02:41:35 -0600 Subject: pass monsterfork api exposure setting to all serializers + add `MONSTERFORK_API_FORCE_*` env vars to set api compatability modes for clients/apps --- app/controllers/api/v1/polls/votes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/api/v1/polls') diff --git a/app/controllers/api/v1/polls/votes_controller.rb b/app/controllers/api/v1/polls/votes_controller.rb index 3fa0b6a76..186194ba0 100644 --- a/app/controllers/api/v1/polls/votes_controller.rb +++ b/app/controllers/api/v1/polls/votes_controller.rb @@ -11,7 +11,7 @@ class Api::V1::Polls::VotesController < Api::BaseController def create VoteService.new.call(current_account, @poll, vote_params[:choices]) - render json: @poll, serializer: REST::PollSerializer + render json: @poll, serializer: REST::PollSerializer, monsterfork_api: monsterfork_api end private -- cgit