Commit 349caec3 authored by Bryce Johnson's avatar Bryce Johnson

Stringify username before passing to ActiveRecord.

parent cdf23275
......@@ -86,7 +86,7 @@ class UsersController < ApplicationController
end
def exists
render json: { exists: !User.find_by_username(params[:username]).nil? }
render json: { exists: User.where(username: params[:username].to_s).any? }
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment