Sha256: cebcbb012119f7681b48a3603d6eb443ce45abfcd45e39ba72f4c6638c02c9ed

Contents?: true

Size: 467 Bytes

Versions: 12

Compression:

Stored size: 467 Bytes

Contents

module Mailboxer
  class Conversation
    class OptOut < ActiveRecord::Base
      self.table_name = :mailboxer_conversation_opt_outs

      belongs_to :conversation, :class_name  => "Mailboxer::Conversation"
      belongs_to :unsubscriber, :polymorphic => true

      validates :unsubscriber, :presence => true

      scope :unsubscriber, lambda { |entity| where(:unsubscriber_type => entity.class.base_class.name, :unsubscriber_id => entity.id) }

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mailboxer-0.15.1 app/models/mailboxer/conversation/opt_out.rb
mailboxer-0.15.0 app/models/mailboxer/conversation/opt_out.rb
mailboxer-0.14.0 app/models/mailboxer/conversation/opt_out.rb
mailboxer-0.13.0 app/models/mailboxer/conversation/opt_out.rb
mailboxer-0.12.5 app/models/mailboxer/conversation/opt_out.rb
mailboxer-0.12.4 app/models/mailboxer/conversation/opt_out.rb
mailboxer-0.12.3 app/models/mailboxer/conversation/opt_out.rb
mailboxer-0.12.2 app/models/mailboxer/conversation/opt_out.rb
mailboxer-0.12.1 app/models/mailboxer/conversation/opt_out.rb
mailboxer-0.12.0 app/models/mailboxer/conversation/opt_out.rb
mailboxer-0.12.0.rc2 app/models/mailboxer/conversation/opt_out.rb
mailboxer-0.12.0.rc1 app/models/mailboxer/conversation/opt_out.rb