Make `signed_id_verifier_secret` a class attribute
Followup: https://github.com/rails/rails/pull/42442
This commit is contained in:
parent
c8932d6ec5
commit
2d79790247
|
@ -10,7 +10,7 @@ module ActiveRecord
|
||||||
# :singleton-method:
|
# :singleton-method:
|
||||||
# Set the secret used for the signed id verifier instance when using Active Record outside of Rails.
|
# 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.
|
# 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
|
end
|
||||||
|
|
||||||
module ClassMethods
|
module ClassMethods
|
||||||
|
|
Loading…
Reference in New Issue