Skip to content

Commit

Permalink
development環境でnewspaperの設定が2回走るのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
komagata committed Jul 8, 2024
1 parent 7d86267 commit 55ee423
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/initializers/newspaper.rb
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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

0 comments on commit 55ee423

Please sign in to comment.