From 3d79e993b56fb0cc5f17b2a986e6c3334c568baa Mon Sep 17 00:00:00 2001 From: pabois <pierreandre.boissinot@noesya.coop> Date: Fri, 22 Oct 2021 12:29:55 +0200 Subject: [PATCH] async --- app/models/communication/website/page.rb | 1 + app/models/communication/website/post.rb | 1 + app/models/communication/website/with_github.rb | 2 ++ 3 files changed, 4 insertions(+) diff --git a/app/models/communication/website/page.rb b/app/models/communication/website/page.rb index 804559385..09ba7a034 100644 --- a/app/models/communication/website/page.rb +++ b/app/models/communication/website/page.rb @@ -91,4 +91,5 @@ class Communication::Website::Page < ApplicationRecord assigns: { page: self } ) end + handle_asynchronously :publish_to_github end diff --git a/app/models/communication/website/post.rb b/app/models/communication/website/post.rb index 68171a3f0..731cccc51 100644 --- a/app/models/communication/website/post.rb +++ b/app/models/communication/website/post.rb @@ -69,4 +69,5 @@ class Communication::Website::Post < ApplicationRecord assigns: { post: self } ) end + handle_asynchronously :publish_to_github end diff --git a/app/models/communication/website/with_github.rb b/app/models/communication/website/with_github.rb index ed89d0e8c..368f306c8 100644 --- a/app/models/communication/website/with_github.rb +++ b/app/models/communication/website/with_github.rb @@ -36,4 +36,6 @@ module Communication::Website::WithGithub def publish_to_github '' end + handle_asynchronously :publish_to_github + end -- GitLab