rails v7.1.2 and ruby to v3.3.0

This commit is contained in:
Alex Turchyn
2023-12-29 18:50:14 +00:00
committed by Pete Matsyburka
parent b94dbc75b7
commit fe845bfa36
22 changed files with 226 additions and 194 deletions
+2 -2
View File
@@ -4,10 +4,10 @@ module JsonWebToken
module_function
def encode(payload)
JWT.encode(payload, Rails.application.secrets.secret_key_base)
JWT.encode(payload, Rails.application.credentials.secret_key_base)
end
def decode(token)
JWT.decode(token, Rails.application.secrets.secret_key_base)[0]
JWT.decode(token, Rails.application.credentials.secret_key_base)[0]
end
end
+1 -1
View File
@@ -21,7 +21,7 @@ module SubmissionEvents
def build_tracking_param(submitter, event_type = 'click_email')
Base64.urlsafe_encode64(
[submitter.slug, event_type, Rails.application.secrets.secret_key_base].join(':')
[submitter.slug, event_type, Rails.application.credentials.secret_key_base].join(':')
).first(TRACKING_PARAM_LENGTH)
end