Pattern: Use of plain method call instead of lambda
/proc
Issue: -
This rule checks for scope calls where it was passed
a method (usually a scope) instead of a lambda
/proc
.
# bad
scope :something, where(something: true)
# good
scope :something, -> { where(something: true) }
Attribute | Value |
---|---|
Include | app/models/**/*.rb |