Open sitarane opened 1 year ago
It might mean "you can be authenticated or not, we don't care". It could mean "being not authenticated is a requirement"
It turns out the be the latter.
There's a comment in above the method definition, but it's ambigous as well:
Helper for use in before_actions where no authentication is required.
A better comment could be:
Helper for use in before_actions where it is required to be unauthenticated
A better name for the method could be:
It might mean "you can be authenticated or not, we don't care". It could mean "being not authenticated is a requirement"
It turns out the be the latter.
There's a comment in above the method definition, but it's ambigous as well:
A better comment could be:
A better name for the method could be: