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