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
Just recently upgraded to v0.4.2 and I noticed that currently the cop doesn't pick up offenders in class_methods do...end blocks
Cases using module ClassMethods works great
modulePersonableextendActiveSupport::ConcernmoduleClassMethodsdefage@age ||= 33# ThreadSafety/InstanceVariableInClassMethod error will occur here appropriatelyendendend
Rails also allows us to use class_methods to achieve the same thing
Just recently upgraded to
v0.4.2
and I noticed that currently the cop doesn't pick up offenders inclass_methods do...end
blocksCases using
module ClassMethods
works greatRails also allows us to use
class_methods
to achieve the same thingIt'd be awesome if we could detect cases inside
class_methods
blocks as well 🤩https://api.rubyonrails.org/v6.1.3.2/classes/ActiveSupport/Concern.html#method-i-class_methods
The text was updated successfully, but these errors were encountered: