mkocher/whiteboard

View on GitHub
app/mailers/post_mailer.rb

Summary

Maintainability
A
0 mins
Test Coverage
class PostMailer < ActionMailer::Base
  helper :application

  def send_to_all(post, addresses, standup_id)
    @post = post
    @standup_id = standup_id
    mail  :to => Array(addresses),
          :subject => post.title_for_email,
          :from => "#{post.from} <noreply@pivotallabs.com>"
  end
end