Fix Rails/ActiveRecordCallbacksOrder cop (#24689)
This commit is contained in:
parent
38b2974a83
commit
b5c4b47746
8 changed files with 28 additions and 41 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue