mirror of https://github.com/rails/rails
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]:
|
||
---|---|---|
.. | ||
analyzer | ||
controllers | ||
database | ||
dummy | ||
fixtures/files | ||
jobs | ||
models | ||
previewer | ||
service | ||
template | ||
javascript_package_test.rb | ||
test_helper.rb |