提交 a57f7b57 编写于 作者: X Xavier Noria
上级 b6ccaee9
module ActiveJob
# Returns the version of the currently loaded ActiveJob as a <tt>Gem::Version</tt>
# Returns the version of the currently loaded Active Job as a <tt>Gem::Version</tt>
def self.gem_version
Gem::Version.new VERSION::STRING
end
......
require_relative 'gem_version'
module ActiveJob
# Returns the version of the currently loaded ActiveJob as a <tt>Gem::Version</tt>
# Returns the version of the currently loaded Active Job as a <tt>Gem::Version</tt>
def self.version
gem_version
end
......
......@@ -203,7 +203,7 @@ is integrated with Action Mailer so you can easily send emails asynchronously:
# If you want to send the email now use #deliver_now
UserMailer.welcome(@user).deliver_now
# If you want to send the email through ActiveJob use #deliver_later
# If you want to send the email through Active Job use #deliver_later
UserMailer.welcome(@user).deliver_later
```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册