match how map follow works
This commit is contained in:
parent
df943f31b9
commit
91f3ec5e0a
1 changed files with 5 additions and 2 deletions
|
@ -165,8 +165,11 @@ class TopicsController < ApplicationController
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.json do
|
format.json do
|
||||||
head :ok if follow
|
if follow
|
||||||
head :bad_request
|
head :ok
|
||||||
|
else
|
||||||
|
head :bad_request
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue