ruby - rails 3.2 ActionMailer after_callback message.body not working -
in rails 3.2.13 application saving every mail service using after_callback mail|message object
class notificationmailer < actionmailer::base include abstractcontroller::callbacks after_filter :track def track interaction= interaction.create( from: message.from, to: message.to, body: message.decode_body, subject: message.subject ) end end
which working perfect mails except mails attachments. there, body(message.body,message.decode_body) giving blank string.
any idea?
ruby actionmailer
No comments:
Post a Comment