FIX: Don't rate limit the creation of topics when skipping validations

This commit is contained in:
Robin Ward 2015-04-21 16:48:39 -04:00
parent 5bf8c31af4
commit 405edebfed

View file

@ -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