Sha256: cee8969c668028d0842c0915e7af783f6ca2d95e46731cb10d4cf1b589caf59d

Contents?: true

Size: 374 Bytes

Versions: 36

Compression:

Stored size: 374 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 no_reply
      Thredded.email_from
    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
thredded-1.1.0 app/view_models/thredded/topic_email_view.rb
thredded-1.0.1 app/view_models/thredded/topic_email_view.rb
thredded-1.0.0 app/view_models/thredded/topic_email_view.rb
thredded-0.16.16 app/view_models/thredded/topic_email_view.rb
thredded-0.16.15 app/view_models/thredded/topic_email_view.rb
thredded-0.16.14 app/view_models/thredded/topic_email_view.rb
thredded-0.16.13 app/view_models/thredded/topic_email_view.rb
thredded-0.16.12 app/view_models/thredded/topic_email_view.rb
thredded-0.16.11 app/view_models/thredded/topic_email_view.rb
thredded-0.16.10 app/view_models/thredded/topic_email_view.rb
thredded-0.16.9 app/view_models/thredded/topic_email_view.rb
thredded-0.16.8 app/view_models/thredded/topic_email_view.rb
thredded-0.16.7 app/view_models/thredded/topic_email_view.rb
thredded-0.16.6 app/view_models/thredded/topic_email_view.rb
thredded-0.16.5 app/view_models/thredded/topic_email_view.rb
thredded-0.16.4 app/view_models/thredded/topic_email_view.rb
thredded-0.16.3 app/view_models/thredded/topic_email_view.rb
thredded-0.16.1 app/view_models/thredded/topic_email_view.rb
thredded-0.16.0 app/view_models/thredded/topic_email_view.rb
thredded-0.15.5 app/view_models/thredded/topic_email_view.rb