app/models/active_mailer/base.rb in active_mailer-0.0.3 vs app/models/active_mailer/base.rb in active_mailer-0.0.4

- old
+ new

@@ -7,10 +7,10 @@ class Base < ActiveRecord::Base self.abstract_class = true has_many :email_user_associations, :as => :emailable has_many :recipients, :through => :email_user_associations, :source => "email_user" - belongs_to :sender, :class_name => "EmailUser", :foreign_key => "sender_id" + belongs_to :sender, :class_name => "ActiveMailer::EmailUser", :foreign_key => "sender_id" attr_accessor :body # leave this as an accessor for now since it's complicated attr_accessor :rendered_contents # contains the actual sent email after `send!` is called validates_presence_of :sender validates_length_of :subject, :minimum => 1