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

View File

@ -132,9 +132,9 @@ class PostCreator
# We need to enqueue jobs after the transaction. Otherwise they might begin before the data has
# been comitted.
Jobs.enqueue(:feature_topic_users, topic_id: topic.id) if topic.present?
post.trigger_post_process
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 if post.present?
post
end