match how map follow works

This commit is contained in:
Connor Turland 2017-02-15 22:59:23 -05:00 committed by GitHub
parent df943f31b9
commit 91f3ec5e0a

View file

@ -165,8 +165,11 @@ class TopicsController < ApplicationController
respond_to do |format|
format.json do
head :ok if follow
head :bad_request
if follow
head :ok
else
head :bad_request
end
end
end
end