Commit
Ruby
code posted
created at 18 Nov 03:54, updated at 18 Nov 03:55
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
d570364d3fd6293fd4890464a98b5340705e1ac7 Vadik Rastyagaev <oktoberliner@oktoberliner-macbook.local> 2009-11-18 04:34:26 UTC M app/models/message.rb diff --git a/app/models/message.rb b/app/models/message.rb index 665c9e7..969f2f1 100644 --- a/app/models/message.rb +++ b/app/models/message.rb @@ -70,7 +70,7 @@ class Message < ActiveRecord::Base end def send_email - if self.to.get_emails + if self.to.get_emails and (self.to != self.from) unless self.reason_name.blank? Mailer.send "deliver_#{self.reason_name}_notification", self else |
597 Bytes in 3 ms with coderay