Make `signed_id_verifier_secret` a class attribute

Followup: https://github.com/rails/rails/pull/42442
This commit is contained in:
Jean Boussier 2021-06-11 09:14:28 +02:00
parent c8932d6ec5
commit 2d79790247
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ module ActiveRecord
# :singleton-method:
# Set the secret used for the signed id verifier instance when using Active Record outside of Rails.
# Within Rails, this is automatically set using the Rails application key generator.
mattr_accessor :signed_id_verifier_secret, instance_writer: false
class_attribute :signed_id_verifier_secret, instance_writer: false
end
module ClassMethods