Sha256: 0e6f20ee13199e721453ed2348015c19dc48ceac822314fb7623865d195d841f
Contents?: true
Size: 539 Bytes
Versions: 16
Compression:
Stored size: 539 Bytes
Contents
class CommentPresenter < BasePresenter presents :comment #------------------------------------------------------------------------------ def formatted_comment markdown(comment.body, :safe => true) end #------------------------------------------------------------------------------ def date_posted format_datetime comment.created_at end #------------------------------------------------------------------------------ def author comment.user.nil? ? 'Anonymous' : comment.user.display_name end end
Version data entries
16 entries across 16 versions & 1 rubygems