0
0
Fork 0

Fix Rails/ActiveRecordCallbacksOrder cop (#24689)

This commit is contained in:
Matt Jankowski 2023-05-02 12:23:35 -04:00 committed by GitHub
parent 38b2974a83
commit b5c4b47746
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 41 deletions

View file

@ -36,8 +36,8 @@ class SessionActivation < ApplicationRecord
detection.platform.id
end
before_create :assign_access_token
before_save :assign_user_agent
before_create :assign_access_token
class << self
def active?(id)