Skip to content

Instantly share code, notes, and snippets.

@samueljmurray
Created March 27, 2017 08:10
Show Gist options
  • Save samueljmurray/b6c2d52606ed0a0670c536501929a72b to your computer and use it in GitHub Desktop.
Save samueljmurray/b6c2d52606ed0a0670c536501929a72b to your computer and use it in GitHub Desktop.
UserAuth anon
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