Sha256: d462680ca179a6401d416031cc590333b4ee0745b7b1d2d4208d21d78b162c99
Contents?: true
Size: 457 Bytes
Versions: 6
Compression:
Stored size: 457 Bytes
Contents
# frozen_string_literal: true module Thredded class TopicEmailView # @param [Thredded::TopicCommon] topic def initialize(topic) @topic = topic end def smtp_api_tag(tag) %({"category": ["thredded_#{@topic.private? ? 'private_topic' : @topic.messageboard.name}","#{tag}"]}) end def subject "#{Thredded.email_outgoing_prefix} #{@topic.title}" end def no_reply Thredded.email_from end end end
Version data entries
6 entries across 6 versions & 1 rubygems