Support Ruby 2.4.

This commit is contained in:
Guo Xiang Tan
2017-04-15 12:11:02 +08:00
parent 86efc57390
commit 04016f0dec
29 changed files with 73 additions and 60 deletions

View File

@ -64,7 +64,7 @@ class TopicCreator
rollback_with!(topic, :too_many_users) if @added_users.size != 1
# Create a warning record
Warning.create(topic: topic, user: @added_users.first, created_by: @user)
UserWarning.create(topic: topic, user: @added_users.first, created_by: @user)
end
def watch_topic(topic)