Skip to content

Instantly share code, notes, and snippets.

@meltingice
Created May 24, 2017 14:32
Show Gist options
  • Save meltingice/178015772ccaeae730c61d4a785866dd to your computer and use it in GitHub Desktop.
Save meltingice/178015772ccaeae730c61d4a785866dd to your computer and use it in GitHub Desktop.
comments.map do |comment|
comment['member']['blocked'] = member_is_blocking?(comment['member'])
comment['body'] = body_for(comment)
comment['member_has_voted'] = member_has_voted?(comment)
comment['children'] = decorate!(comment['children'])
comment
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment