class User
scope :active, -> { where(active: true) }
end
Running rubocop I get the following warning:
Parenthesize the param
-> { where(active: true) }
to make sure that the block will be associated with the->
method call.
I have no slightest clue, what my scope
definition has to do with this warning. Do you?
How do I fix the warning except for turning the check off because it makes no sense at the moment?