diff --git a/app/models/communication/website/page.rb b/app/models/communication/website/page.rb index 8045593859adbfafe5e2bad868fc5f91f3940979..09ba7a034840fb670c865424a56e31da9312d442 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 68171a3f0c9ebfabc934482597d251bb2a01d8c6..731cccc51eb517df2b2ff5feb8244a84bf75cc64 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 ed89d0e8cb6d392621670d46b04408a09c324993..368f306c8ef1fb5c22064985c20997b8f73c0637 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