1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activestorage/app/models/active_storage
George Claghorn fd61bae02c ActiveStorage::Attachment#signed_id must return a signed *blob* ID
Fixes that calling e.g. `url_for @user.avatar` would return an incorrect URL resulting in a 404. The Active Storage URL helper ends up calling ActiveStorage::Attachment#signed_id, which previously delegated to ActiveStorage::Blob#signed_id but changed to return a signed *attachment* ID in 1a3dc42.

The Active Storage controllers pass signed IDs to ActiveStorage::Blob.find_signed, so we need signed blob IDs.
2020-05-28 09:20:49 -04:00
..
blob Only enqueue analysis jobs when blob is analyzable 2020-01-16 14:14:28 -05:00
attachment.rb ActiveStorage::Attachment#signed_id must return a signed *blob* ID 2020-05-28 09:20:49 -04:00
blob.rb [ActiveStorage] Rewrite Blob.unattached scope code using where.missing 2020-05-04 01:01:30 +03:00
current.rb
filename.rb
preview.rb Active Storage: allow serving files by proxying 2020-05-11 16:21:58 -04:00
variant.rb Fix unintentional method redefinitions 2020-05-14 09:46:16 -04:00
variant_record.rb Track Active Storage variants in the database 2019-12-06 13:26:51 -05:00
variant_with_record.rb Active Storage: allow serving files by proxying 2020-05-11 16:21:58 -04:00
variation.rb Track Active Storage variants in the database 2019-12-06 13:26:51 -05:00