Class: RailsWink::WinkMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- RailsWink::WinkMailer
- Defined in:
- app/mailers/rails_wink/wink_mailer.rb
Instance Method Summary collapse
Instance Method Details
#report(datadump, desc = '[No description provided]', from = nil) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/mailers/rails_wink/wink_mailer.rb', line 5 def report(datadump, desc = '[No description provided]', from = nil) @datadump = datadump @desc = desc @from = from || 'none@localhost' subject = ''.tap do |sub| sub << "#{RailsWink.config[:prefix]}: " if RailsWink.config[:prefix] sub << "Bug Report" sub << " (from #{@from})" if !@from.nil? end mail :to => RailsWink.config[:to], :subject => subject, :from => @from end |