Okay, THIS time the specs should pass. Geez.

This commit is contained in:
Robin Ward 2013-04-08 11:23:03 -04:00
parent 9c461aced4
commit 8942d9a094
1 changed files with 3 additions and 3 deletions

View File

@ -132,9 +132,9 @@ class PostCreator
# We need to enqueue jobs after the transaction. Otherwise they might begin before the data has # We need to enqueue jobs after the transaction. Otherwise they might begin before the data has
# been comitted. # been comitted.
Jobs.enqueue(:feature_topic_users, topic_id: topic.id) if topic.present? topic_id = @opts[:topic_id] || topic.try(:id)
Jobs.enqueue(:feature_topic_users, topic_id: topic.id) if topic_id.present?
post.trigger_post_process post.trigger_post_process if post.present?
post post
end end