-
-
Save kana-sama/f28245c102ed25f9da83d95fee41426d 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
@statuses [ | |
ok: 200, | |
bad_request: 400, | |
not_found: 404 | |
] | |
def put_status(conn, status) when is_atom(status) and not is_nil(status) do | |
put_status(conn, @statuses[status]) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment