aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/test/models/attachments_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Store newly-uploaded files on save rather than assignmentGeorge Claghorn2018-07-071-459/+0
|
* Flip the order of the after_create callbacksDwight Watson2018-03-271-3/+13
| | | | | | | | | | Addresses rails/rails#32247 Add test that checks identify and analyze work in correct order Break out direct upload test helper Review changes for direct-upload test helper
* Allow selectively purging attached blobsNicholas Shirley2018-03-061-0/+28
|
* Fix purging dependent blobs when attachments aren't loadedGeorge Claghorn2018-03-051-2/+16
|
* Delete dependent attachments with recordGeorge Claghorn2018-03-051-0/+14
| | | | [Matt Jones & George Claghorn]
* Generate root-relative paths in Active Storage disk service URL methodsGeorge Claghorn2018-03-051-1/+0
| | | | Fixes #32129.
* Handle another case where a blob might be erroneously purgedGeorge Claghorn2018-03-041-0/+12
|
* Avoid purging attached blob when replacing it with itselfGeorge Claghorn2018-03-041-0/+12
|
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-17/+17
|
* Extract content types from blob dataGeorge Claghorn2018-01-151-1/+24
|
* Provide attachment writersGeorge Claghorn2017-11-201-0/+32
| | | | | | | | | | | | | Permit creating a record and attaching files in a single step. # Before: User.create!(user_params.except(:avatar)).tap do |user| user.avatar.attach(user_params[:avatar]) end # After: User.create!(user_params) [Yoshiyuki Hirano & George Claghorn]
* Permit attaching files to new recordsGeorge Claghorn2017-11-191-0/+44
| | | | Closes #31164.
* Fix ASt CI failure with rack-test 0.7.1Ryuta Kamizono2017-11-201-1/+1
| | | | Due to https://github.com/rack-test/rack-test/commit/5fd3631078e7c73aaed7d4371f70fb2a79384be9.
* Introduce ActiveStorage::Attached::{One,Many}#detachGeorge Claghorn2017-11-141-0/+26
|
* Preserve existing metadata when analyzing a blobGeorge Claghorn2017-11-131-0/+25
| | | | Closes #31138.
* Extract metadata from images and videosGeorge Claghorn2017-10-221-1/+58
|
* Add `with_attached_*` scope to `has_one_attached` macroYoshiyuki Hirano2017-09-191-0/+13
| | | | | * For avoiding N+1 problem, added `with_attached_*` scope to `has_one_attached` macro.
* Fix replacing a singular attachmentGeorge Claghorn2017-08-291-0/+25
|
* Use frozen string literal in Active StorageKoichi ITO2017-08-121-0/+2
|
* Make activestorage treat Rack::Test::UploadedFile just like ↵Isaac Betesh2017-08-111-1/+7
| | | | ActionDispatch::Http::UploadedFile
* Run Active Storage tests in CI (#30144)George Claghorn2017-08-101-7/+0
|
* Add 'activestorage/' from commit '3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58'Rafael Mendonça França2017-07-311-0/+124
git-subtree-dir: activestorage git-subtree-mainline: 0d58e7e478e79c2d6b2a39a4444d2a17a903b2a6 git-subtree-split: 3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58