File: //usr/local/rvm/gems/ruby-2.7.4/doc/activerecord-6.1.4.1/ri/ActiveRecord/SignedId/signed_id-i.ri
U:RDoc::AnyMethod[iI"signed_id:ETI"%ActiveRecord::SignedId#signed_id;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"kReturns a signed id that's generated using a preconfigured +ActiveSupport::MessageVerifier+ instance. ;TI"qThis signed id is tamper proof, so it's safe to send in an email or otherwise share with the outside world. ;TI"sIt can further more be set to expire (the default is not to expire), and scoped down with a specific purpose. ;TI"oIf the expiration date has been exceeded before +find_signed+ is called, the id won't find the designated ;TI"6record. If a purpose is set, this too must match.;To:RDoc::Markup::BlankLine o;
; [I"rIf you accidentally let a signed id out in the wild that you wish to retract sooner than its expiration date ;TI"o(or maybe you forgot to set an expiration date while meaning to!), you can use the purpose to essentially ;TI"$version the signed_id, like so:;T@o:RDoc::Markup::Verbatim; [I"!user.signed_id purpose: :v2
;T:@format0o;
; [I"pAnd you then change your +find_signed+ calls to require this new purpose. Any old signed ids that were not ;TI"=created with the purpose will no longer find the record.;T:
@fileI"#lib/active_record/signed_id.rb;T:0@omit_headings_from_table_of_contents_below000[ I"$(expires_in: nil, purpose: nil);T@FI"
SignedId;TcRDoc::NormalModule00