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