Resolve Rails.application.secrets deprecation

This commit is contained in:
Sebastian Serth
2023-12-22 00:37:43 +01:00
committed by Sebastian Serth
parent 9a280615c5
commit c280a58214

View File

@ -6,7 +6,7 @@ module AuthenticatedUrlHelper
class << self class << self
TOKEN_ALGORITHM = 'HS512' TOKEN_ALGORITHM = 'HS512'
TOKEN_EXPIRATION = 10.minutes TOKEN_EXPIRATION = 10.minutes
TOKEN_SECRET = Rails.application.secrets.secret_key_base TOKEN_SECRET = Rails.application.secret_key_base
TOKEN_PARAM = :token TOKEN_PARAM = :token
COOKIE_EXPIRATION = 30.seconds COOKIE_EXPIRATION = 30.seconds