chore: Removing duplicate callback to create auth token (#2624)

Removed after create callback in user model to create a new access token. This is already being taken care of by AccessTokenable module.

Fixes #2620
This commit is contained in:
Mrunal Selokar
2021-07-15 15:24:38 +05:30
committed by GitHub
parent b56512eb56
commit e0535168a0
4 changed files with 21 additions and 2 deletions

View File

@@ -88,7 +88,6 @@ class User < ApplicationRecord
before_validation :set_password_and_uid, on: :create
after_create_commit :create_access_token
after_save :update_presence_in_redis, if: :saved_change_to_availability?
scope :order_by_full_name, -> { order('lower(name) ASC') }