summaryrefslogtreecommitdiff
path: root/app/uploaders
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-05-04 19:23:50 +0200
committerRémy Coutable <remy@rymai.me>2018-05-23 16:14:43 +0200
commite531a0c11cebc282029ba735d69c44c39660ca34 (patch)
treeb757a7d9c4ad235ba19b0172a52b0a17a6e32835 /app/uploaders
parent02f17a0988acfdc60d7e1f920e8f750cb81f09d0 (diff)
downloadgitlab-ce-e531a0c11cebc282029ba735d69c44c39660ca34.tar.gz
Use the new CacheableAttributes concern in the ApplicationSetting and Appearance models
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/uploaders')
-rw-r--r--app/uploaders/object_storage.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/uploaders/object_storage.rb b/app/uploaders/object_storage.rb
index a3549cada95..f2a8afccdeb 100644
--- a/app/uploaders/object_storage.rb
+++ b/app/uploaders/object_storage.rb
@@ -103,6 +103,7 @@ module ObjectStorage
end
included do
+ include AfterCommitQueue
after_save on: [:create, :update] do
background_upload(changed_mounts)
end