First pass at ActiveRecord::Relation#ranked