Skip to content

Commit 2d79790

Browse files
committed
Make signed_id_verifier_secret a class attribute
Followup: rails#42442
1 parent c8932d6 commit 2d79790

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/signed_id.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module SignedId
1010
# :singleton-method:
1111
# Set the secret used for the signed id verifier instance when using Active Record outside of Rails.
1212
# Within Rails, this is automatically set using the Rails application key generator.
13-
mattr_accessor :signed_id_verifier_secret, instance_writer: false
13+
class_attribute :signed_id_verifier_secret, instance_writer: false
1414
end
1515

1616
module ClassMethods

0 commit comments

Comments
 (0)