diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-23 10:14:02 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-23 10:14:02 -0700 |
commit | 2579fec805f23903dd6c4f1726198e010f5a9a54 (patch) | |
tree | 6dfbfbe4829a1a3f0c6e92e773d1f470bf111cf1 /lib/arel/nodes/sql_literal.rb | |
parent | a3b8ef8375056cd3b6a8cea49dec671f2a8f6c41 (diff) | |
download | rails-2579fec805f23903dd6c4f1726198e010f5a9a54.tar.gz rails-2579fec805f23903dd6c4f1726198e010f5a9a54.tar.bz2 rails-2579fec805f23903dd6c4f1726198e010f5a9a54.zip |
adding count nodes
Diffstat (limited to 'lib/arel/nodes/sql_literal.rb')
-rw-r--r-- | lib/arel/nodes/sql_literal.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/arel/nodes/sql_literal.rb b/lib/arel/nodes/sql_literal.rb index 53ff376071..526d088449 100644 --- a/lib/arel/nodes/sql_literal.rb +++ b/lib/arel/nodes/sql_literal.rb @@ -1,6 +1,9 @@ module Arel module Nodes class SqlLiteral < String + def count distinct = false + Count.new [self], distinct + end end end end |