1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activestorage/test/models
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
..
attached Fix Active Storage behavior on record dup 2020-05-25 22:03:32 -04:00
attachment_test.rb ActiveStorage::Attachment#signed_id must return a signed *blob* ID 2020-05-28 09:20:49 -04:00
blob_test.rb Deprecate starts_with? and ends_with? for String core extensions 2020-05-05 15:51:24 +09:00
filename_test.rb Enable Performance/UnfreezeString cop 2018-09-23 08:56:55 +09:00
presence_validation_test.rb Store newly-uploaded files on save rather than assignment 2018-07-07 23:25:33 -04:00
preview_test.rb Store previews in the same service as the original blob 2019-12-20 15:06:03 -05:00
reflection_test.rb Allow configure services for individual attachments 2019-10-01 21:24:05 +03:00
representation_test.rb
variant_test.rb Use DiskController for both public and private files 2019-12-06 16:02:16 -05:00
variant_with_record_test.rb Make sure variant is created on the same service 2019-12-06 22:02:07 -05:00