Last active
February 3, 2016 07:56
-
-
Save JunKikuchi/175fb199dbefd9573d9e 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
user = nil | |
ActiveRecord::Base.transaction do | |
user = User.create!(...省略...) | |
...省略... | |
end | |
FooWorker.perform_async(user.id) if user.present? # 非同期ジョブ投入 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment