From fd52e670265d3ad0f3aafe2c5f271fc7d0827a76 Mon Sep 17 00:00:00 2001 From: Rimian Perkins Date: Thu, 2 Feb 2017 13:11:10 +1100 Subject: [PATCH] return json --- app/controllers/choice/choice_controller.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/controllers/choice/choice_controller.rb b/app/controllers/choice/choice_controller.rb index 3dcecc3..174d625 100644 --- a/app/controllers/choice/choice_controller.rb +++ b/app/controllers/choice/choice_controller.rb @@ -21,11 +21,7 @@ module Choice BadgeGranter.grant(badge, current_user) - respond_to do |format| - format.html - format.js - format.json { render :json => { status: 'OK' } } - end + render :json => { status: 'OK' } end end end