Class: UsersController

Inherits:
ApplicationController show all
Defined in:
app/controllers/users_controller.rb

Instance Attribute Summary

Attributes included from Authentication

#current_user

Instance Method Summary collapse

Instance Method Details

#createObject



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.full_messages.join(", "))
  end
end