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]:
|
||
---|---|---|
.. | ||
assets/javascripts | ||
controllers | ||
javascript/activestorage | ||
jobs/active_storage | ||
models/active_storage |