instance method
signed_id
Ruby on Rails 5.2.8.1
Since v5.2.8.1Signature
signed_id()
Returns a signed ID for this blob that’s suitable for reference on the client-side without fear of tampering. It uses the framework-wide verifier on ActiveStorage.verifier, but with a dedicated purpose.
Source
# File activestorage/app/models/active_storage/blob.rb, line 80
def signed_id
ActiveStorage.verifier.generate(id, purpose: :blob_id)
end
Defined in activestorage/app/models/active_storage/blob.rb line 80
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Blob