This project is archived and is in readonly mode.

#6507 new
Oscar Del Ben

Actionmailer methods should not be redefined

Reported by Oscar Del Ben | March 2nd, 2011 @ 02:24 PM

Here's my mailer model:

class Notifier < ActionMailer::Base
def message

...

end end

The problem with this code is that it will override ActionMailer's message private instance variables, causing all kind of weird and hard to track errors. I understand that this happens because we are subclassing ActionMailer::Base, but there should at least be a warning or something.

No comments found

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages