Module: Collavre::CommentsHelper
- Defined in:
- app/helpers/collavre/comments_helper.rb
Instance Method Summary collapse
Instance Method Details
#formatted_comment_action(comment) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/collavre/comments_helper.rb', line 3 def formatted_comment_action(comment) JSON.pretty_generate(JSON.parse(comment.action)) rescue JSON::ParserError, TypeError comment.action.to_s end |