From 405edebfedf7f01d196ba8aae2cf08f89d65ca03 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 21 Apr 2015 16:48:39 -0400 Subject: [PATCH] FIX: Don't rate limit the creation of topics when skipping validations --- lib/topic_creator.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/topic_creator.rb b/lib/topic_creator.rb index 790da802ed5..38fbcd5236e 100644 --- a/lib/topic_creator.rb +++ b/lib/topic_creator.rb @@ -124,6 +124,8 @@ class TopicCreator end def save_topic(topic) + topic.disable_rate_limits! if @opts[:skip_validations] + unless topic.save(validate: !@opts[:skip_validations]) rollback_from_errors!(topic) end