Last active
February 3, 2016 07:56
-
-
Save JunKikuchi/f364fe25e6cb5a617744 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::Base.transaction do | |
user = User.create!(...省略...) | |
...省略... | |
FooWorker.perform_async(user.id) # 非同期ジョブ投入 | |
...省略... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment