From 6a0097468213e928f477f638ec53e9efa396febe Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Fri, 16 May 2008 12:32:59 -0700 Subject: some cleanup, notes for further cleanup/investigation --- lib/arel/relations/aggregation.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/arel/relations/aggregation.rb') diff --git a/lib/arel/relations/aggregation.rb b/lib/arel/relations/aggregation.rb index 55f24997cc..4c4ef0dfed 100644 --- a/lib/arel/relations/aggregation.rb +++ b/lib/arel/relations/aggregation.rb @@ -22,4 +22,10 @@ module Arel self.class == other.class and self.relation == other.relation end end + + class Relation + def externalize + aggregation?? Aggregation.new(self) : self + end + end end \ No newline at end of file -- cgit v1.2.3