diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-29 11:43:58 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-29 11:43:58 -0700 |
commit | 6330a18636c7c07a5d01f294e2fa48413ddcb042 (patch) | |
tree | 12c94d43ab6e0ee9d0577ceaa7b6e14b69e3704b /lib/arel/alias_predication.rb | |
parent | 27b09e04982abf37c98e6f7b64995c17e59ea7bb (diff) | |
parent | 1f5ed8eb20231644525bdad9a94a91e810191186 (diff) | |
download | rails-6330a18636c7c07a5d01f294e2fa48413ddcb042.tar.gz rails-6330a18636c7c07a5d01f294e2fa48413ddcb042.tar.bz2 rails-6330a18636c7c07a5d01f294e2fa48413ddcb042.zip |
Merged pull request #48 from ernie/down_with_to_s.
Stop calling to_s on aliases, require them to be strings already.
Diffstat (limited to 'lib/arel/alias_predication.rb')
-rw-r--r-- | lib/arel/alias_predication.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/alias_predication.rb b/lib/arel/alias_predication.rb index 3f3db7671e..f42e9ee1a6 100644 --- a/lib/arel/alias_predication.rb +++ b/lib/arel/alias_predication.rb @@ -1,7 +1,7 @@ module Arel module AliasPredication def as other - Nodes::As.new self, Nodes::SqlLiteral.new(other.to_s) + Nodes::As.new self, Nodes::SqlLiteral.new(other) end end end
\ No newline at end of file |