mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
8ef5bd9ced
This commit allows passing a custom `purpose:` keyword argument to both
`find_signed!` and `signed_id`. This matches the signature of the
`super` methods in ActiveRecord, and it is already possible with the
non-bang [`find_signed`][find_signed] method, since that one doesn't
have an override in ActiveStorage (although perhaps it should, to set
the default :blob_id purpose)
This is useful in cases where you want to further isolate different
types of blobs, for example if they have different levels of
authorization.
[find_signed]:
|
||
---|---|---|
.. | ||
attached | ||
attachment_test.rb | ||
blob_test.rb | ||
filename_test.rb | ||
presence_validation_test.rb | ||
preview_test.rb | ||
reflection_test.rb | ||
representation_test.rb | ||
strict_loading_test.rb | ||
variant_test.rb | ||
variant_with_record_test.rb |