diff options
author | Mark Longair <mark@mysociety.org> | 2013-05-16 15:10:54 +0100 |
---|---|---|
committer | Mark Longair <mhl@pobox.com> | 2013-05-16 18:18:05 +0100 |
commit | ac2d5ed7f249fe5bef5601b4a60141fa79095558 (patch) | |
tree | 2dd93f2b93cb8e50b1f040faa473ab5272822a18 /lib/mail_handler/backends/mail_backend.rb | |
parent | 97d5046613b474c49e97cd108b874ac0e0c3f4cf (diff) |
Avoid an FoiAttachment validation failure under Rails 3
Under Rails 3, the uudecoded FoiAttachment in this test
fails validation at the self.save! in
IncomingMessage.parse_raw_email, although the FoiAttachment
has been correctly created and saved to the database in
_uudecode_and_save_attachments. Forcing a reload=true on
self.foi_attachments fixes this.
Thanks to Louise Crow for finding the fix for this problem.
Diffstat (limited to 'lib/mail_handler/backends/mail_backend.rb')
0 files changed, 0 insertions, 0 deletions