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
Matheus Richard 414394206a Extend audio_tag and video_tag to accept Active Storage attachments.
Now it's possible to write

    audio_tag(user.audio_file)
    video_tag(user.video_file)

Instead of

    audio_tag(polymorphic_path(user.audio_file))
    video_tag(polymorphic_path(user.video_file))

image_tag already supported that, so this follows the same pattern.
2022-03-14 02:05:37 -03:00
..
attached ActiveStorage: support empty attachments submits 2021-12-14 18:40:35 -05:00
attachment_test.rb Enable Style/ExplicitBlockArgument cop 2021-09-05 17:06:19 +02:00
blob_test.rb compose is primarily meant to take blobs so make them a positional argument 2021-12-04 02:14:48 +01: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 Make vips the default variant processor for new apps 2021-07-14 14:26:43 -03:00
reflection_test.rb Extend audio_tag and video_tag to accept Active Storage attachments. 2022-03-14 02:05:37 -03:00
representation_test.rb Make vips the default variant processor for new apps 2021-07-14 14:26:43 -03:00
strict_loading_test.rb Add strict loading for active storage 2020-11-16 22:09:15 +08:00
variant_test.rb fix rubocop errors 2022-03-08 15:36:24 -05:00
variant_with_record_test.rb Make vips the default variant processor for new apps 2021-07-14 14:26:43 -03:00