aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/lib/active_storage/attached/model.rb
Commit message (Collapse)AuthorAgeFilesLines
* It may be better to explicitly require 'object/try' where we call `try`Akira Matsuda2019-08-011-0/+2
| | | | | | In most cases it works now without explicit require because it's accidentally required through active_support/core_ext/date_and_time/calculations.rb where we still call `try`, but that would stop working if we changed the Calculations implementation and remove the require call there.
* Preserve existing attachment assignment behavior for upgraded appsGeorge Claghorn2019-07-201-5/+12
| | | | | | | | | Assigning to a collection of attachments appends rather than replacing, as in 5.2. Existing 5.2 apps that rely on this behavior will no longer break when they're upgraded to 6.0. For apps generated on 6.0 or newer, assigning replaces the existing attachments in the collection. #attach should be used to add new attachments to the collection without removing existing ones. I expect that we'll deprecate the old behavior in 6.1. Closes #36374.
* Remove unused attributeGeorge Claghorn2018-07-211-2/+2
|
* Clear attachment changes on reloadGeorge Claghorn2018-07-131-0/+4
|
* Fix analyzing new blobs from uploaded files on attachGeorge Claghorn2018-07-131-18/+4
|
* Store newly-uploaded files on save rather than assignmentGeorge Claghorn2018-07-071-0/+150