From e531a0c11cebc282029ba735d69c44c39660ca34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Coutable?= Date: Fri, 4 May 2018 19:23:50 +0200 Subject: Use the new CacheableAttributes concern in the ApplicationSetting and Appearance models MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Rémy Coutable --- app/uploaders/object_storage.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/uploaders') 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 -- cgit v1.2.1