1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
module Arel module ObjectExtensions def bind(relation) Arel::Value.new(self, relation) end def find_correlate_in(relation) bind(relation) end def let yield(self) end Object.send(:include, self) end end