You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This raises an offense, even though we're operating in a trusted context (off of some_user). Interestingly, using find_by(token:) and find(token) do not raise offenses, despite fundamentally being the same level of risk. The way we look for dynamic method names may be to blame.
METHOD_PATTERN=/^find_by_(.+?)(!)?$/
...
# yoinked from Rails/DynamicFindBydefstatic_method_name(method_name)match=METHOD_PATTERN.match(method_name)returnnilunlessmatchmatch[2] ? 'find_by!' : 'find_by'end
The text was updated successfully, but these errors were encountered:
This raises an offense, even though we're operating in a trusted context (off of
some_user
). Interestingly, usingfind_by(token:)
andfind(token)
do not raise offenses, despite fundamentally being the same level of risk. The way we look for dynamic method names may be to blame.The text was updated successfully, but these errors were encountered: