From 4af6425f42de7710aad6d67294c77b5253669608 Mon Sep 17 00:00:00 2001 From: Nicolas Bally Date: Fri, 11 Jun 2021 16:32:37 +0200 Subject: [PATCH] suite --- app/models/forum_topic.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/forum_topic.rb b/app/models/forum_topic.rb index cbfb0a0..3c96dd8 100644 --- a/app/models/forum_topic.rb +++ b/app/models/forum_topic.rb @@ -45,9 +45,9 @@ class ForumTopic < ActiveRecord::Base end ForumUser.where(:follow_new_topics => true).each do |forum_user| - if folowed_topic = FolowedTopic.where(:forum_topic_id => topic.id).first + if folowed_topic = FollowedTopic.where(:forum_topic_id => topic.id).first else - folowed_topic = FolowedTopic.create(:forum_topic_id => topic.id) + folowed_topic = FollowedTopic.create(:forum_topic_id => topic.id) end folowed_topic.save