Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
e8b60a95
R
rails
项目概览
张重言
/
rails
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rails
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
e8b60a95
编写于
10月 26, 2014
作者:
Z
Zachary Scott
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'rishijain-update_docs_1'
上级
89397d09
747a1c9b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
3 deletion
+6
-3
actionmailer/lib/action_mailer/base.rb
actionmailer/lib/action_mailer/base.rb
+4
-3
actionmailer/lib/action_mailer/delivery_job.rb
actionmailer/lib/action_mailer/delivery_job.rb
+2
-0
未找到文件。
actionmailer/lib/action_mailer/base.rb
浏览文件 @
e8b60a95
...
...
@@ -84,7 +84,8 @@ module ActionMailer
# name as the method in your mailer model. For example, in the mailer defined above, the template at
# <tt>app/views/notifier/welcome.text.erb</tt> would be used to generate the email.
#
# Variables defined in the model are accessible as instance variables in the view.
# Variables defined in the methods of your mailer model are accessible as instance variables in their
# corresponding view.
#
# Emails by default are sent in plain text, so a sample view for our model example might look like this:
#
...
...
@@ -702,8 +703,8 @@ def _raise_error
# The main method that creates the message and renders the email templates. There are
# two ways to call this method, with a block, or without a block.
#
#
Both methods accept a headers hash. This hash allows you to specify the most used headers
# in an email message, these are:
#
It accepts a headers hash. This hash allows you to specify
#
the most used headers
in an email message, these are:
#
# * +:subject+ - The subject of the message, if this is omitted, Action Mailer will
# ask the Rails I18n class for a translated +:subject+ in the scope of
...
...
actionmailer/lib/action_mailer/delivery_job.rb
浏览文件 @
e8b60a95
require
'active_job'
module
ActionMailer
# The <tt>ActionMailer::DeliveryJob</tt> class is used when you
# want to send emails outside of the request-response cycle.
class
DeliveryJob
<
ActiveJob
::
Base
#:nodoc:
queue_as
:mailers
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录