Ruby

Ruby

Made by DeepSource

Use lambda/proc instead of a plain method call RB-RL1052

Anti-pattern
Major

Scope calls should not pass a method (usually a scope) instead of a lambda/proc.

Bad practice

scope :something, where(something: true)

Recommended

scope :something, -> { where(something: true) }