diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-01-12 20:34:18 -0800 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-01-12 20:34:18 -0800 |
commit | 0cba6cde9958969933da79626d00464f7d07b22f (patch) | |
tree | 52ed24a8752e8c49ed629b7f6ee8bfd5ebe7bfab /lib/active_relation/primitives | |
parent | 19a63d1acfc9b7668bc19fa2796d4e11a2180cef (diff) | |
download | rails-0cba6cde9958969933da79626d00464f7d07b22f.tar.gz rails-0cba6cde9958969933da79626d00464f7d07b22f.tar.bz2 rails-0cba6cde9958969933da79626d00464f7d07b22f.zip |
bug with aggregation to_Sql
Diffstat (limited to 'lib/active_relation/primitives')
-rw-r--r-- | lib/active_relation/primitives/aggregation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_relation/primitives/aggregation.rb b/lib/active_relation/primitives/aggregation.rb index 20fdcf46c5..a3c7747165 100644 --- a/lib/active_relation/primitives/aggregation.rb +++ b/lib/active_relation/primitives/aggregation.rb @@ -10,7 +10,7 @@ module ActiveRelation end def to_sql(options = {}) - "#{function_sql}(@attribute.to_sql)" + "#{function_sql}(#{@attribute.to_sql})" end def ==(other) |