aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/app/models/active_storage/attachment.rb
diff options
context:
space:
mode:
authorDwight Watson <dwightwatson@me.com>2018-03-22 14:16:36 +1100
committerDwight Watson <dwightwatson@me.com>2018-03-27 12:58:19 +1100
commit8e8f09fa187ad8b4567b68361e644a334741a7a0 (patch)
tree3dca02ef7a693d5d030dc013f1dbb377b5f4579f /activestorage/app/models/active_storage/attachment.rb
parent4c9c3ffc2e80155f31dbcf80591618ed1c858685 (diff)
downloadrails-8e8f09fa187ad8b4567b68361e644a334741a7a0.tar.gz
rails-8e8f09fa187ad8b4567b68361e644a334741a7a0.tar.bz2
rails-8e8f09fa187ad8b4567b68361e644a334741a7a0.zip
Flip the order of the after_create callbacks
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
Diffstat (limited to 'activestorage/app/models/active_storage/attachment.rb')
-rw-r--r--activestorage/app/models/active_storage/attachment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/app/models/active_storage/attachment.rb b/activestorage/app/models/active_storage/attachment.rb
index 19f48c57d6..c59877a9a5 100644
--- a/activestorage/app/models/active_storage/attachment.rb
+++ b/activestorage/app/models/active_storage/attachment.rb
@@ -14,7 +14,7 @@ class ActiveStorage::Attachment < ActiveRecord::Base
delegate_missing_to :blob
- after_create_commit :identify_blob, :analyze_blob_later
+ after_create_commit :analyze_blob_later, :identify_blob
# Synchronously purges the blob (deletes it from the configured service) and destroys the attachment.
def purge