Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
367e8cf7
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,发现更多精彩内容 >>
提交
367e8cf7
编写于
9月 28, 2015
作者:
A
amitkumarsuroliya
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add missing punctuation mark to all ActionMailer docs [ci skip]
上级
dd5b083f
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
12 addition
and
12 deletion
+12
-12
actionmailer/lib/action_mailer/gem_version.rb
actionmailer/lib/action_mailer/gem_version.rb
+1
-1
actionmailer/lib/action_mailer/log_subscriber.rb
actionmailer/lib/action_mailer/log_subscriber.rb
+1
-1
actionmailer/lib/action_mailer/message_delivery.rb
actionmailer/lib/action_mailer/message_delivery.rb
+3
-3
actionmailer/lib/action_mailer/preview.rb
actionmailer/lib/action_mailer/preview.rb
+6
-6
actionmailer/lib/action_mailer/test_helper.rb
actionmailer/lib/action_mailer/test_helper.rb
+1
-1
未找到文件。
actionmailer/lib/action_mailer/gem_version.rb
浏览文件 @
367e8cf7
module
ActionMailer
# Returns the version of the currently loaded Action Mailer as a <tt>Gem::Version</tt>
# Returns the version of the currently loaded Action Mailer as a <tt>Gem::Version</tt>
.
def
self
.
gem_version
Gem
::
Version
.
new
VERSION
::
STRING
end
...
...
actionmailer/lib/action_mailer/log_subscriber.rb
浏览文件 @
367e8cf7
...
...
@@ -29,7 +29,7 @@ def process(event)
end
end
# Use the logger configured for ActionMailer::Base
# Use the logger configured for ActionMailer::Base
.
def
logger
ActionMailer
::
Base
.
logger
end
...
...
actionmailer/lib/action_mailer/message_delivery.rb
浏览文件 @
367e8cf7
...
...
@@ -60,9 +60,9 @@ def deliver_later!(options={})
#
# Options:
#
# * <tt>:wait</tt> - Enqueue the email to be delivered with a delay
# * <tt>:wait_until</tt> - Enqueue the email to be delivered at (after) a specific date / time
# * <tt>:queue</tt> - Enqueue the email on the specified queue
# * <tt>:wait</tt> - Enqueue the email to be delivered with a delay
.
# * <tt>:wait_until</tt> - Enqueue the email to be delivered at (after) a specific date / time
.
# * <tt>:queue</tt> - Enqueue the email on the specified queue
.
def
deliver_later
(
options
=
{})
enqueue_delivery
:deliver_now
,
options
end
...
...
actionmailer/lib/action_mailer/preview.rb
浏览文件 @
367e8cf7
...
...
@@ -52,7 +52,7 @@ class Preview
extend
ActiveSupport
::
DescendantsTracker
class
<<
self
# Returns all mailer preview classes
# Returns all mailer preview classes
.
def
all
load_previews
if
descendants
.
empty?
descendants
...
...
@@ -68,27 +68,27 @@ def call(email)
message
end
# Returns all of the available email previews
# Returns all of the available email previews
.
def
emails
public_instance_methods
(
false
).
map
(
&
:to_s
).
sort
end
# Returns true if the email exists
# Returns true if the email exists
.
def
email_exists?
(
email
)
emails
.
include?
(
email
)
end
# Returns true if the preview exists
# Returns true if the preview exists
.
def
exists?
(
preview
)
all
.
any?
{
|
p
|
p
.
preview_name
==
preview
}
end
# Find a mailer preview by its underscored class name
# Find a mailer preview by its underscored class name
.
def
find
(
preview
)
all
.
find
{
|
p
|
p
.
preview_name
==
preview
}
end
# Returns the underscored name of the mailer preview without the suffix
# Returns the underscored name of the mailer preview without the suffix
.
def
preview_name
name
.
sub
(
/Preview$/
,
''
).
underscore
end
...
...
actionmailer/lib/action_mailer/test_helper.rb
浏览文件 @
367e8cf7
...
...
@@ -2,7 +2,7 @@
module
ActionMailer
# Provides helper methods for testing Action Mailer, including #assert_emails
# and #assert_no_emails
# and #assert_no_emails
.
module
TestHelper
include
ActiveJob
::
TestHelper
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录