fix deprecation

This commit is contained in:
Régis Hanol 2015-09-23 11:16:17 +02:00
parent 864607e01f
commit b01743620a
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ class TopicCreator
def add_users(topic, usernames)
return unless usernames
User.where(username: usernames.split(',')).each do |user|
User.where(username: usernames.split(',').flatten).each do |user|
check_can_send_permission!(topic, user)
@added_users << user
topic.topic_allowed_users.build(user_id: user.id)