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
You are correct it isn't useless in the sense of having no side-effect, so maybe we should change the wording, but the only thing this code does is make the method public (and slow it down a bit).
It should be replaced by public :valid_authenticity_token?
Expected behavior
Given the test script
the method definition in class
A
seems necessaryand therefore is not an offense.
Actual behavior
Steps to reproduce the problem
See above
RuboCop version
The text was updated successfully, but these errors were encountered: