Could you make lines 56 and 57 more readable, please? Maybe move the select condition or the whole where/select thing into a method and indenting like this:

    things = self.things
      .where(foo: 1)
      .select { |x| x.bar != 0 }
      .size