Parenthesize the param to make sure that block will be associated with method call
It wants you to do this:
scope :active, (-> { where(active: true) })
Better to turn off the warning :)
This stabby lambda syntax is perfectly fine. Maybe you have old rubocop version?
Update: fixed in 0.49.0.
gem update rubocop
worked for me.