clean(tech): EmailChecker, use class method, not instance
This commit is contained in:
parent
554141bb67
commit
ced634295e
6 changed files with 25 additions and 31 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue