Class: RailsJwtAuth::RegistrationsController

Inherits:
ApplicationController
  • Object
show all
Includes:
ParamsHelper, RenderHelper
Defined in:
app/controllers/rails_jwt_auth/registrations_controller.rb

Instance Method Summary collapse

Methods included from RenderHelper

#render_204, #render_422, #render_registration, #render_session

Instance Method Details

#createObject



6
7
8
9
# File 'app/controllers/rails_jwt_auth/registrations_controller.rb', line 6

def create
  user = RailsJwtAuth.model.new(registration_create_params)
  user.save ? render_registration(user) : render_422(user.errors)
end