Fix named scope + class method example

Closes #8804 [ci skip]

Conflicts:
	activerecord/lib/active_record/scoping/named.rb