Class: UsersController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- UsersController
- Defined in:
- app/controllers/users_controller.rb
Instance Attribute Summary
Attributes included from Authentication
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/controllers/users_controller.rb', line 7 def create if @user.save @user.send_otp(user_phone_number) ok else bad_request(@user.errors..join(", ")) end end |