clean(tech): EmailChecker, use class method, not instance

This commit is contained in:
mfo 2024-07-01 10:38:43 +02:00
parent 554141bb67
commit ced634295e
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
6 changed files with 25 additions and 31 deletions

View file

@ -1,5 +1,5 @@
class EmailCheckerController < ApplicationController
def show
render json: EmailChecker.new.check(email: params[:email])
render json: EmailChecker.check(email: params[:email])
end
end