diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-04-28 14:01:33 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-04-28 14:01:33 -0700 |
commit | 09b2406e829cee71e4543a75fc4fbe226157d35e (patch) | |
tree | ee8a230c3b9c1d4f31cef38defe269f6b8868859 /lib/arel/relations/grouping.rb | |
parent | 3ae7a601e962468468eac1399ebdfd7113730310 (diff) | |
download | rails-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.rb | 4 |
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 |