Updated Named Scope STI

Updated #14544 to work with `activerecord-deprecated_finders`. Required change to older style of lambda definitions. Fixes issue #13466