Class Mailing
In: app/models/mailing.rb
Parent: ActiveRecord::Base

Methods

Public Instance methods

[Source]

    # File app/models/mailing.rb, line 24
24:   def send_feedback
25:     self.email ||= current_user.email
26:     self.save!
27:     Mailer.deliver_feedback(self)
28:     update_attribute :sent, true
29:   end

[Source]

    # File app/models/mailing.rb, line 14
14:   def send_item
15:     Mailer.deliver_item(self)
16:     update_attribute :sent, true
17:   end

[Source]

    # File app/models/mailing.rb, line 31
31:   def send_reset_password(activation_code)
32:     Mailer.deliver_reset_password(self, activation_code)
33:     update_attribute :sent, true
34:   end

[Source]

    # File app/models/mailing.rb, line 19
19:   def send_share
20:     Mailer.deliver_share(self)
21:     update_attribute :sent, true
22:   end

[Validate]