Vote #68183
完了Unhandled exception on creating File
0%
説明
Creating (uploading) a file yields an unhandled exception in @Mailer#attachments_added@ whenever the attachment fails to be validated (e.g. filesize too large) and email notifications are turned on.
Exception:
NoMethodError: undefined method `container' for nil:NilClass
Relavant stacktrace:
--- - "[RAILS_ROOT]/app/models/mailer.rb:110:in `attachments_added'" - "[RAILS_ROOT]/app/controllers/files_controller.rb:32:in `create'"
This patch fixes the problem. Please check and commit.
journals
this is an easy one, would be great if it made it into 1.0.2
--------------------------------------------------------------------------------
Fixed in r4177.
--------------------------------------------------------------------------------
Thanks :)
--------------------------------------------------------------------------------
Merged into 1.0-stable
--------------------------------------------------------------------------------