Joined February 2012
·

Jeremy Marc

Remixjobs
·
San Diego
·
·

Posted to Rails Email Protips over 1 year ago

You cannot call super when using classeval because you are overwriting it. A working solution is to use aliasmethod and to replace super.

...
aliasmethod :oldmail, :mail
...
old_mail(headers, &block)

Achievements
1 Karma
0 Total ProTip Views