aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/grouping.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-28 14:01:33 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-28 14:01:33 -0700
commit09b2406e829cee71e4543a75fc4fbe226157d35e (patch)
treeee8a230c3b9c1d4f31cef38defe269f6b8868859 /lib/arel/relations/grouping.rb
parent3ae7a601e962468468eac1399ebdfd7113730310 (diff)
downloadrails-09b2406e829cee71e4543a75fc4fbe226157d35e.tar.gz
rails-09b2406e829cee71e4543a75fc4fbe226157d35e.tar.bz2
rails-09b2406e829cee71e4543a75fc4fbe226157d35e.zip
automatically aliasing tables
Diffstat (limited to 'lib/arel/relations/grouping.rb')
-rw-r--r--lib/arel/relations/grouping.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/relations/grouping.rb b/lib/arel/relations/grouping.rb
index ccca600360..41af4ba0f6 100644
--- a/lib/arel/relations/grouping.rb
+++ b/lib/arel/relations/grouping.rb
@@ -15,5 +15,9 @@ module Arel
def aggregation?
true
end
+
+ def name
+ relation.name + '_aggregation'
+ end
end
end \ No newline at end of file