Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unused attribute | George Claghorn | 2018-07-21 | 1 | -2/+2 |
| | |||||
* | Fix replacing many attachments via assign and attach | George Claghorn | 2018-07-17 | 1 | -0/+4 |
| | |||||
* | Fix that successive ActiveStorage::Attached::Many#attach calls would ↵ | George Claghorn | 2018-07-16 | 1 | -1/+11 |
| | | | | overwrite previous attachments | ||||
* | Clear attachment changes on reload | George Claghorn | 2018-07-13 | 1 | -0/+4 |
| | |||||
* | Implement ActiveStorage::Attached::{One,Many}#attach in terms of changes | George Claghorn | 2018-07-13 | 4 | -18/+30 |
| | |||||
* | Fix that detaching could purge | George Claghorn | 2018-07-13 | 2 | -2/+2 |
| | |||||
* | Fix analyzing new blobs from uploaded files on attach | George Claghorn | 2018-07-13 | 1 | -18/+4 |
| | |||||
* | Raise an ArgumentError instead of a RuntimeError | George Claghorn | 2018-07-08 | 1 | -1/+1 |
| | |||||
* | Store newly-uploaded files on save rather than assignment | George Claghorn | 2018-07-07 | 10 | -136/+319 |
| | |||||
* | Reflection for attachments | Kevin Deisz | 2018-05-30 | 1 | -0/+12 |
| | | | | Add the ability to reflect on the attachments that have been defined using ActiveRecord::Reflection. | ||||
* | Generate getter and setter methods in mixin | Josh Susser | 2018-05-17 | 1 | -2/+2 |
| | | | | | | | | | | | Generated attachment getter and setter methods are created within the model's `GeneratedAssociationMethods` module to allow overriding and composition using `super`. Includes tests for new functionality. Co-authored-by: Josh Susser <josh@hasmanythrough.com> Co-authored-by: Jamon Douglas <terrildouglas@gmail.com> | ||||
* | Merge pull request #31956 from fatkodima/has_attached-presence-validation | Eileen M. Uchitelle | 2018-04-27 | 1 | -0/+4 |
|\ | | | | | has_(one/many)_attached presence validation | ||||
| * | has_(one/many)_attached presence validation | fatkodima | 2018-02-11 | 1 | -0/+4 |
| | | |||||
* | | Allow selectively purging attached blobs | Nicholas Shirley | 2018-03-06 | 2 | -12/+18 |
| | | |||||
* | | Fix purging dependent blobs when attachments aren't loaded | George Claghorn | 2018-03-05 | 2 | -23/+17 |
| | | |||||
* | | Delete dependent attachments with record | George Claghorn | 2018-03-05 | 1 | -2/+2 |
| | | | | | | | | [Matt Jones & George Claghorn] | ||||
* | | Handle another case where a blob might be erroneously purged | George Claghorn | 2018-03-04 | 1 | -5/+10 |
| | | |||||
* | | Avoid purging attached blob when replacing it with itself | George Claghorn | 2018-03-04 | 1 | -2/+6 |
|/ | |||||
* | Change Active Storage destroy callbacks | kami-zh | 2018-01-09 | 1 | -2/+2 |
| | | | | | There is concern that only blob are deleted depending on the `before_destroy` definition order which throws abort. | ||||
* | Fix attaching blobs to optimistically-locked records | George Claghorn | 2018-01-08 | 1 | -2/+2 |
| | | | | | | Explicitly declare inverse associations so ActiveStorage::Attachment touches the original record instance. Closes #31542. | ||||
* | Provide attachment writers | George Claghorn | 2017-11-20 | 1 | -0/+8 |
| | | | | | | | | | | | | | 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 records | George Claghorn | 2017-11-19 | 2 | -5/+9 |
| | | | | Closes #31164. | ||||
* | Introduce ActiveStorage::Attached::{One,Many}#detach | George Claghorn | 2017-11-14 | 2 | -7/+14 |
| | |||||
* | Extract metadata from images and videos | George Claghorn | 2017-10-22 | 1 | -1/+5 |
| | |||||
* | Add `with_attached_*` scope to `has_one_attached` macro | Yoshiyuki Hirano | 2017-09-19 | 1 | -0/+6 |
| | | | | | * For avoiding N+1 problem, added `with_attached_*` scope to `has_one_attached` macro. | ||||
* | Fix file missing in activestorage's example code [ci skip] | Yoshiyuki Hirano | 2017-09-17 | 2 | -2/+2 |
| | | | | | * File.open("~/face.jpg") raise error: `Errno::ENOENT: No such file or directory @ rb_sysopen - ~/face.jpg` | ||||
* | Refactor | George Claghorn | 2017-08-29 | 1 | -12/+10 |
| | |||||
* | Fix replacing a singular attachment | George Claghorn | 2017-08-29 | 2 | -4/+22 |
| | |||||
* | Update Active Storage docs [ci skip] | Yoshiyuki Hirano | 2017-08-30 | 1 | -1/+1 |
| | |||||
* | minor tweaks in Active Storage after a walkthrough | Xavier Noria | 2017-08-15 | 1 | -1/+1 |
| | |||||
* | Use frozen string literal in Active Storage | Koichi ITO | 2017-08-12 | 3 | -0/+6 |
| | |||||
* | Merge pull request #30147 from yhirano55/fix_trailing_blank_lines | Rafael França | 2017-08-11 | 1 | -1/+0 |
|\ | | | | | [Active Storage] `rubocop -a --only Layout/TrailingBlankLines` | ||||
| * | [Active Storage] `rubocop -a --only Layout/TrailingBlankLines` | Yoshiyuki Hirano | 2017-08-09 | 2 | -2/+1 |
| | | |||||
* | | Evaluate `@active_storage_attached_#{name}` only once | Ryuta Kamizono | 2017-08-12 | 1 | -12/+8 |
| | | | | | | | | | | Currently `"@active_storage_attached_#{name}"` in `define_method` is evaluated every call. It is better to evaluate it only once. | ||||
* | | Fix formatting of Active Storage docs [ci skip] | yuuji.yaginuma | 2017-08-11 | 2 | -14/+14 |
|/ | | | | | * Use `+` instead of backquote. * Remove escape from class to be link | ||||
* | Merge branch 'master' into ast-module | David Heinemeier Hansson | 2017-08-05 | 1 | -3/+9 |
|\ | |||||
| * | Fix ruby warnings | yuuji.yaginuma | 2017-08-05 | 1 | -2/+8 |
| | | | | | | | | | | | | | | | | | | | | This fixes following warnings: ``` test/models/variant_test.rb:11: warning: ambiguous first argument; put parentheses or a space even after `/' operator lib/active_storage/attached/macros.rb:63: warning: instance variable @active_storage_attached_highlights not initialized lib/active_storage/attached/macros.rb:25: warning: instance variable @active_storage_attached_avatar not initialized ``` | ||||
* | | `module ActiveStorage`, not `ActiveStorage::Class` | claudiob | 2017-08-04 | 3 | -154/+161 |
|/ | | | | | | | | | | | | | | | | | | The reasons for this commit are: - uniformity with the other Rails libraries - (possibly) behave better with respect to autoloading - fix the index in the generated documentation Before this commit, run `rake rdoc` generates this left sidebar (ActiveStorage entries are indexed twice, both inside and outside the module): <img width="308" alt="before" src="https://user-images.githubusercontent.com/10076/28939523-7c087dec-7846-11e7-9289-38ed4a2930cd.png"> After this commit, run `rake rdoc` generates this left sidebar: (ActiveStorage entries are only indexed inside the module): <img width="303" alt="after" src="https://user-images.githubusercontent.com/10076/28939524-7c090be0-7846-11e7-8ee5-29dfecae548e.png"> | ||||
* | Add 'activestorage/' from commit '3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58' | Rafael Mendonça França | 2017-07-31 | 3 | -0/+183 |
git-subtree-dir: activestorage git-subtree-mainline: 0d58e7e478e79c2d6b2a39a4444d2a17a903b2a6 git-subtree-split: 3f4a7218a4a4923a0e7ce1b2eb0d2888ce30da58 |