123456789_123456789_123456789_123456789_123456789_

Module: ActiveRecord::Base::DeprecateSignedIdVerifierSecret

Relationships & Source Files
Defined in: activerecord/lib/active_record/signed_id.rb

SignedId

Instance Attribute Details

#signed_id_verifier_secret=(secret) (writeonly)

[ GitHub ]

  
# File 'activerecord/lib/active_record/signed_id.rb', line 17

def signed_id_verifier_secret=(secret)
  ActiveRecord.deprecator.warn(<<~MSG)
    ActiveRecord::Base.signed_id_verifier_secret is deprecated and will be removed in the future.

    If the secret is model-specific, set Model.signed_id_verifier instead.

    Otherwise, configure Rails.application.message_verifiers (or ActiveRecord.message_verifiers) with the secret.
  MSG

  super
end