peimelo/controlled_health_api

View on GitHub
app/controllers/overrides/registrations_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
module Overrides
  class RegistrationsController < DeviseTokenAuth::RegistrationsController
    def create
      render json: {
        success: false,
        errors: ['It is no longer possible to create an account.']
      }, status: 401
    end
  end
end