From b7ce4bdc7804492ad9022d165c0e1501ad25a03d Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 20 Dec 2015 17:21:31 +1100 Subject: [PATCH] correct code --- lib/topic_creator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/topic_creator.rb b/lib/topic_creator.rb index 7c6a8854b19..c4791a2f7ef 100644 --- a/lib/topic_creator.rb +++ b/lib/topic_creator.rb @@ -186,7 +186,7 @@ class TopicCreator check_can_send_permission!(topic, group) topic.topic_allowed_groups.build(group_id: group.id) len += 1 - group.update_columns(:has_messages, true) unless group.has_messages + group.update_columns(has_messages: true) unless group.has_messages end rollback_with!(topic, :target_group_not_found) unless len == names.length