Last active
October 15, 2020 14:55
-
-
Save motoroller95/36c18b3963f536f82af4f72661c4524c 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
ActiveRercord::Base.transaction do | |
user = User.create!(params) | |
user_profile = User::Profile.create!(user: user) | |
UserHandler.perform_async(user.id) | |
# 10 строк кода | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment