Created
May 12, 2019 20:00
-
-
Save rwehresmann/e95526c8fc5b43107e5c82253a51ee6c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class HomeController < ApplicationController | |
| before_action :authenticate_user | |
| def index | |
| render json: current_user || 'The user isn\'t authenticated'. | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment