FIX: Broken serializer spec with no payload

This commit is contained in:
Robin Ward 2019-06-05 12:44:56 -04:00
parent f1d547c301
commit ea5767e935

View File

@ -24,7 +24,7 @@ class ReviewableQueuedPostSerializer < ReviewableSerializer
end
def include_reply_to_post_number?
object.payload['reply_to_post_number'].present?
object.payload.present? && object.payload['reply_to_post_number'].present?
end
end