diff options
author | Ernie Miller <ernie@metautonomo.us> | 2011-04-29 14:27:45 -0400 |
---|---|---|
committer | Ernie Miller <ernie@metautonomo.us> | 2011-04-29 14:27:45 -0400 |
commit | 1f5ed8eb20231644525bdad9a94a91e810191186 (patch) | |
tree | 3288b4288c2ff32be5fbdc66516404e4e372bff8 /lib/arel/nodes | |
parent | 7361b6cbd5e4c6f03198ed42eed4e3dd4feb149e (diff) | |
download | rails-1f5ed8eb20231644525bdad9a94a91e810191186.tar.gz rails-1f5ed8eb20231644525bdad9a94a91e810191186.tar.bz2 rails-1f5ed8eb20231644525bdad9a94a91e810191186.zip |
Stop calling to_s on aliases, require them to be strings already.
Diffstat (limited to 'lib/arel/nodes')
-rw-r--r-- | lib/arel/nodes/function.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/nodes/function.rb b/lib/arel/nodes/function.rb index 3263ff9cd4..85347fc028 100644 --- a/lib/arel/nodes/function.rb +++ b/lib/arel/nodes/function.rb @@ -6,12 +6,12 @@ module Arel def initialize expr, aliaz = nil @expressions = expr - @alias = aliaz && SqlLiteral.new(aliaz.to_s) + @alias = aliaz && SqlLiteral.new(aliaz) @distinct = false end def as aliaz - self.alias = SqlLiteral.new(aliaz.to_s) + self.alias = SqlLiteral.new(aliaz) self end end |