[session_activations] Stop needless updated_at changes
This commit is contained in:
parent
2b99918b26
commit
05e95cf090
|
@ -44,8 +44,10 @@ class SessionActivation < ApplicationRecord
|
|||
end
|
||||
|
||||
def activate(**options)
|
||||
SessionActivation.record_timestamps = true
|
||||
activation = create!(options)
|
||||
purge_old
|
||||
SessionActivation.record_timestamps = false
|
||||
activation
|
||||
end
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ Rails.application.routes.draw do
|
|||
Doorkeeper::AccessToken.connection.stick_to_master!
|
||||
Doorkeeper::AccessGrant.connection.stick_to_master!
|
||||
SessionActivation.connection.stick_to_master!
|
||||
SessionActivation.record_timestamps = false
|
||||
|
||||
use_doorkeeper do
|
||||
controllers authorizations: 'oauth/authorizations',
|
||||
|
|
Loading…
Reference in New Issue