From 55ee423a27547bab56a91b294de1636502c7a49f Mon Sep 17 00:00:00 2001 From: komagata Date: Mon, 8 Jul 2024 11:12:56 +0900 Subject: [PATCH] =?UTF-8?q?development=E7=92=B0=E5=A2=83=E3=81=A7newspaper?= =?UTF-8?q?=E3=81=AE=E8=A8=AD=E5=AE=9A=E3=81=8C=EF=BC=92=E5=9B=9E=E8=B5=B0?= =?UTF-8?q?=E3=82=8B=E3=81=AE=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/initializers/newspaper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/newspaper.rb b/config/initializers/newspaper.rb index 9f72148d637..9cdca52c4b8 100644 --- a/config/initializers/newspaper.rb +++ b/config/initializers/newspaper.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -Rails.configuration.to_prepare do +Rails.configuration.after_initialize do Newspaper.subscribe(:event_create, EventOrganizerWatcher.new) Newspaper.subscribe(:answer_create, AnswerNotifier.new) Newspaper.subscribe(:answer_create, NotifierToWatchingUser.new) @@ -73,7 +73,7 @@ Newspaper.subscribe(:create_article, ArticleNotifier.new) Newspaper.subscribe(:destroy_article, ArticleNotificationDestroyer.new) - + Newspaper.subscribe(:work_create, WorkNotifier.new) Newspaper.subscribe(:work_destroy, WorkNotificationDestroyer.new) end