15 lines
308 B
Ruby
15 lines
308 B
Ruby
class SupporterEmail < ActiveRecord::Base
|
|
attr_accessible \
|
|
:to,
|
|
:from,
|
|
:subject,
|
|
:body,
|
|
:recipient_count,
|
|
:supporter_id, :supporter,
|
|
:nonprofit_id,
|
|
:gmail_thread_id
|
|
|
|
belongs_to :supporter
|
|
validates_presence_of :nonprofit_id
|
|
has_many :activities, as: :attachment, dependent: :destroy
|
|
end
|