Module: ApiUserAuth::Controller

Extended by:
ActiveSupport::Concern
Defined in:
lib/api_user_auth/controller.rb

Overview

Base controller module

Instance Method Summary collapse

Instance Method Details

#auth_user_unauthorized(exception) ⇒ Object



11
12
13
# File 'lib/api_user_auth/controller.rb', line 11

def auth_user_unauthorized(exception)
  render json: { message: exception.message }, status: 401
end