Skip to content

Commit cdaa1a3

Browse files
authored
Merge pull request rails#52408 from ghiculescu/as-find-signed-docs
Fix `ActiveStorage::Blob#find_signed!` docs
2 parents 72741db + 33d80b2 commit cdaa1a3

File tree

1 file changed

+2
-3
lines changed
  • activestorage/app/models/active_storage

1 file changed

+2
-3
lines changed

activestorage/app/models/active_storage/blob.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ def find_signed(id, record: nil, purpose: :blob_id)
7171
end
7272

7373
# Works like +find_signed+, but will raise an +ActiveSupport::MessageVerifier::InvalidSignature+
74-
# exception if the +signed_id+ has either expired, has a purpose mismatch, is for another record,
75-
# or has been tampered with. It will also raise an +ActiveRecord::RecordNotFound+ exception if
76-
# the valid signed id can't find a record.
74+
# exception if the +signed_id+ has either expired, has a purpose mismatch, or has been tampered with.
75+
# It will also raise an +ActiveRecord::RecordNotFound+ exception if the valid signed id can't find a record.
7776
def find_signed!(id, record: nil, purpose: :blob_id)
7877
super(id, purpose: purpose)
7978
end

0 commit comments

Comments
 (0)