tags:

views:

58

answers:

0

SystemStackError (stack level too deep):

/usr/local/lib/ruby/gems/1.8/gems/ar_mailer-1.5.1/lib/action_mailer/ar_mailer.rb:113:in `perform_delivery_activerecord'

/usr/local/lib/ruby/gems/1.8/gems/ar_mailer-1.5.1/lib/action_mailer/ar_mailer.rb:112:in `each'

rails 2.3.4

def perform_delivery_activerecord(mail)

email_class = ActionMailer::ARMailer.email_class

mail.destinations.each do |destination|

  email_class.create :mail => mail.encoded, :to => destination,

                     :from => mail.from.first

end

end