Module: LoggedInControllerConcern

Extended by:
ActiveSupport::Concern
Included in:
Api::BoardsController, Api::CommentsController, Api::PostsController, Api::ShareBoardController, Api::UsersController
Defined in:
app/controllers/concerns/logged_in_controller_concern.rb

Overview

Ensures users are logged in and sets ‘@user` instance variable in the controllers. This is included in the base api controller.

Returns 401 error if user is not authenticated