哪个是首选?
class Mailer < ActionMailer::Base
# this?
def bid_end_notify_failed_bidders(job)
@job = job
bidders = @job.bidders
bidders.delete(@job.winner)
bidders.each do |t|
mail(:to => t.email, ....)
end
end
# or this?
def notify_failed_bid(bidder)
mail(:to => bidder ...)
end
end