diff options
author | Christian Felder (masone) <ema@rh-productions.ch> | 2014-09-19 10:32:08 +0200 |
---|---|---|
committer | Christian Felder (masone) <ema@rh-productions.ch> | 2014-09-22 15:52:48 +0200 |
commit | b37e8482caee6d406ac5933fceb60cd2b74adfb7 (patch) | |
tree | a89307c6ddc50e85982b6fb42f252c6d3055b3aa /actionmailer/test/fixtures/base_test/late_inline_attachment_mailer | |
parent | c2dfc316912e780dfd6113e6ab9668128264f111 (diff) | |
download | rails-b37e8482caee6d406ac5933fceb60cd2b74adfb7.tar.gz rails-b37e8482caee6d406ac5933fceb60cd2b74adfb7.tar.bz2 rails-b37e8482caee6d406ac5933fceb60cd2b74adfb7.zip |
Allow attaching files while the mail view is rendered
Diffstat (limited to 'actionmailer/test/fixtures/base_test/late_inline_attachment_mailer')
-rw-r--r-- | actionmailer/test/fixtures/base_test/late_inline_attachment_mailer/on_render.erb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionmailer/test/fixtures/base_test/late_inline_attachment_mailer/on_render.erb b/actionmailer/test/fixtures/base_test/late_inline_attachment_mailer/on_render.erb new file mode 100644 index 0000000000..6decd3bb31 --- /dev/null +++ b/actionmailer/test/fixtures/base_test/late_inline_attachment_mailer/on_render.erb @@ -0,0 +1,7 @@ +<h1>Adding an inline image while rendering</h1> + +<% controller.attachments.inline["controller_attachments.jpg"] = 'via controller.attachments.inline' %> +<%= image_tag attachments['controller_attachments.jpg'].url %> + +<% attachments.inline["attachments.jpg"] = 'via attachments.inline' %> +<%= image_tag attachments['attachments.jpg'].url %> |