Skip to content

Commit

Permalink
Merge pull request #7939 from fjordllc/chore/newspaper-initialization
Browse files Browse the repository at this point in the history
development環境でnewspaperの設定が2回走るのを修正
  • Loading branch information
komagata authored Jul 8, 2024
2 parents c8a9251 + 55ee423 commit f355054
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 f355054

Please sign in to comment.