Changeset 1121
- Timestamp:
- 07/31/07 00:43:37 (1 year ago)
- Files:
-
- trunk/app/models/cast.rb (modified) (1 diff)
- trunk/app/models/mailer.rb (modified) (1 diff)
- trunk/app/views/mailer/document_ready.text.html.rhtml (added)
- trunk/app/views/mailer/document_ready.text.plain.rhtml (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/models/cast.rb
r1117 r1121 52 52 end 53 53 end 54 document.casts << cast 55 Mailer::deliver_document_ready(document) 54 56 end 55 57 end trunk/app/models/mailer.rb
r661 r1121 7 7 @body["user"] = user 8 8 end 9 10 def document_ready(document) 11 @recipients = document.author.email 12 @from = "AudioBank <audiobank@tryphon.org>" 13 @subject = "[AudioBank] #{document.title} prêt" 14 @body = { :document => document, :user => document.author } 15 end 16 9 17 end
