fixes #1792
This commit is contained in:
5
app/views/comment_votes/create.json.erb
Normal file
5
app/views/comment_votes/create.json.erb
Normal file
@@ -0,0 +1,5 @@
|
||||
<% if @comment_vote.errors.any? %>
|
||||
{"success": false, "errors": <%= @comment_vote.errors.full_messages.to_json.html_safe %>}
|
||||
<% else %>
|
||||
{"success": true}
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user