class method
self.find_signed!
Ruby on Rails 8.1.2
Since v6.1.7.10Signature
self.find_signed!(id, record: nil, purpose: :blob_id)
Works like find_signed, but will raise an ActiveSupport::MessageVerifier::InvalidSignature exception if the signed_id has either expired, has a purpose mismatch, or has been tampered with. It will also raise an ActiveRecord::RecordNotFound exception if the valid signed id can’t find a record.
Parameters
-
idreq -
recordkey = nil -
purposekey = :blob_id
Source
# File activestorage/app/models/active_storage/blob.rb, line 76
def find_signed!(id, record: nil, purpose: :blob_id)
super(id, purpose: purpose)
end
Defined in activestorage/app/models/active_storage/blob.rb line 76
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Blob