Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
张重言
rails
提交
2a843b35
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,体验更适合开发者的 AI 搜索 >>
提交
2a843b35
编写于
11月 10, 2014
作者:
Y
Yves Senn
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs, minor changes in Active Job documentation. [ci skip]
上级
6625000b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
6 deletion
+5
-6
activejob/README.md
activejob/README.md
+4
-5
activejob/lib/active_job/base.rb
activejob/lib/active_job/base.rb
+1
-1
未找到文件。
activejob/README.md
浏览文件 @
2a843b35
...
...
@@ -5,7 +5,7 @@ of queueing backends. These jobs can be everything from regularly scheduled
clean-ups, to billing charges, to mailings. Anything that can be chopped up into
small units of work and run in parallel, really.
It also serves as the backend for ActionMailer's #deliver_later functionality
It also serves as the backend for Action
Mailer's #deliver_later functionality
that makes it easy to turn any mailing into a job for running later. That's
one of the most common jobs in a modern web application: Sending emails outside
of the request-response cycle, so the user doesn't have to wait on it.
...
...
@@ -26,7 +26,8 @@ Set the queue adapter for Active Job:
ActiveJob
::
Base
.
queue_adapter
=
:inline
# default queue adapter
```
Note: To learn how to use your preferred queueing backend see its adapter
documentation at ActiveJob::QueueAdapters.
documentation at
[
ActiveJob::QueueAdapters
](
http://api.rubyonrails.org/classes/ActiveJob/QueueAdapters.html
)
.
Declare a job like so:
...
...
@@ -110,7 +111,7 @@ Source code can be downloaded as part of the Rails project on GitHub
## License
ActiveJob is released under the MIT license:
Active
Job is released under the MIT license:
*
http://www.opensource.org/licenses/MIT
...
...
@@ -128,5 +129,3 @@ Bug reports can be filed for the Ruby on Rails project here:
Feature requests should be discussed on the rails-core mailing list here:
*
https://groups.google.com/forum/?fromgroups#!forum/rubyonrails-core
activejob/lib/active_job/base.rb
浏览文件 @
2a843b35
...
...
@@ -32,7 +32,7 @@ module ActiveJob #:nodoc:
# end
#
# Records that are passed in are serialized/deserialized using Global
# I
d
. More information can be found in Arguments.
# I
D
. More information can be found in Arguments.
#
# To enqueue a job to be performed as soon the queueing system is free:
#
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录