Sha256: cf2cdd46dd8bb5a53c4e49547443985c1a59001d55db37b4fe96a1907d524f82

Contents?: true

Size: 492 Bytes

Versions: 25

Compression:

Stored size: 492 Bytes

Contents

# frozen_string_literal: true
module Sipity
  # Responsible for defining who receives what email and in what capacity
  # (eg to:, cc:, bcc:)
  class NotificationRecipient < ActiveRecord::Base
    self.table_name = 'sipity_notification_recipients'
    belongs_to :notification, class_name: 'Sipity::Notification'
    belongs_to :role, class_name: 'Sipity::Role'

    enum(
      recipient_strategy: {
        'to' => 'to',
        'cc' => 'cc',
        'bcc' => 'bcc'
      }
    )
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/models/sipity/notification_recipient.rb
hyrax-5.0.0 app/models/sipity/notification_recipient.rb
hyrax-5.0.0.rc3 app/models/sipity/notification_recipient.rb
hyrax-5.0.0.rc2 app/models/sipity/notification_recipient.rb
hyrax-5.0.0.rc1 app/models/sipity/notification_recipient.rb
hyrax-3.6.0 app/models/sipity/notification_recipient.rb
hyrax-4.0.0 app/models/sipity/notification_recipient.rb
hyrax-4.0.0.rc3 app/models/sipity/notification_recipient.rb
hyrax-4.0.0.rc2 app/models/sipity/notification_recipient.rb
hyrax-4.0.0.rc1 app/models/sipity/notification_recipient.rb
hyrax-3.5.0 app/models/sipity/notification_recipient.rb
hyrax-4.0.0.beta2 app/models/sipity/notification_recipient.rb
hyrax-3.4.2 app/models/sipity/notification_recipient.rb
hyrax-4.0.0.beta1 app/models/sipity/notification_recipient.rb
hyrax-3.4.1 app/models/sipity/notification_recipient.rb
hyrax-3.4.0 app/models/sipity/notification_recipient.rb
hyrax-3.3.0 app/models/sipity/notification_recipient.rb
hyrax-3.2.0 app/models/sipity/notification_recipient.rb
hyrax-3.1.0 app/models/sipity/notification_recipient.rb
hyrax-3.0.2 app/models/sipity/notification_recipient.rb