Incorrect documentation for authenticate_or_request_with_http_token #51919
collimarco
started this conversation in
Docs
Replies: 1 comment 5 replies
-
Just fyi, https://edgeguides.rubyonrails.org/api_documentation_guidelines.html#booleans
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ruby on Rails API documentation is incorrect for
authenticate_or_request_with_http_token
:The word
non-nil
is not the correct word to use here.The correct word is
non-falsy
value, because the login procedure fails if you returnnil
orfalse
.Alternatively, the word
truthy
can also be used.Beta Was this translation helpful? Give feedback.
All reactions