1 2 3 4 5 6 7 8 9
module Arel class Compound < Relation delegate :array, :to => :relation def unoperated_rows relation.call.collect { |row| row.bind(self) } end end end