Created
March 27, 2017 08:10
-
-
Save samueljmurray/b6c2d52606ed0a0670c536501929a72b to your computer and use it in GitHub Desktop.
UserAuth anon
This file contains 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
def anon?(%__MODULE__{user_id: nil}), do: true | |
def anon?(_), do: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment