Sha256: 5191825760d801c56676f12bc095d682ef5c0ead67d0f5a05e72299338c58ca0

Contents?: true

Size: 340 Bytes

Versions: 19

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true
module Thredded
  class MembersMarkedNotified
    def initialize(post, members)
      @post = post
      @members = members
    end

    def run
      members.each do |member|
        post.post_notifications.create(email: member.email)
      end
    end

    private

    attr_reader :post, :members
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
thredded-0.10.1 app/commands/thredded/members_marked_notified.rb
thredded-0.10.0 app/commands/thredded/members_marked_notified.rb
thredded-0.9.4 app/commands/thredded/members_marked_notified.rb
thredded-0.9.3 app/commands/thredded/members_marked_notified.rb
thredded-0.9.2 app/commands/thredded/members_marked_notified.rb
thredded-0.9.1 app/commands/thredded/members_marked_notified.rb
thredded-0.8.4 app/commands/thredded/members_marked_notified.rb
thredded-0.8.2 app/commands/thredded/members_marked_notified.rb
thredded-0.7.0 app/commands/thredded/members_marked_notified.rb
thredded-0.6.3 app/commands/thredded/members_marked_notified.rb
thredded-0.6.2 app/commands/thredded/members_marked_notified.rb
thredded-0.6.1 app/commands/thredded/members_marked_notified.rb
thredded-0.6.0 app/commands/thredded/members_marked_notified.rb
thredded-0.5.1 app/commands/thredded/members_marked_notified.rb
thredded-0.5.0 app/commands/thredded/members_marked_notified.rb
thredded-0.4.0 app/commands/thredded/members_marked_notified.rb
thredded-0.3.2 app/commands/thredded/members_marked_notified.rb
thredded-0.3.1 app/commands/thredded/members_marked_notified.rb
thredded-0.3.0 app/commands/thredded/members_marked_notified.rb