Skip to content
Snippets Groups Projects
Commit 325d30ed authored by ArtOfCode-'s avatar ArtOfCode-
Browse files

Remove debugging puts

parent 5be016f0
No related merge requests found
......@@ -14,7 +14,6 @@ class VotesController < ApplicationController
vote = post.votes.create(user: current_user, vote_type: params[:vote_type].to_i, recv_user: post.user)
if vote.errors.any?
puts "hi"
render json: { status: 'failed', message: vote.errors.full_messages.join('. ') }, status: 403
return
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment