aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/attributes/attribute.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/attributes/attribute.rb')
-rw-r--r--lib/arel/attributes/attribute.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/attributes/attribute.rb b/lib/arel/attributes/attribute.rb
index 6087dc8e52..464d78188a 100644
--- a/lib/arel/attributes/attribute.rb
+++ b/lib/arel/attributes/attribute.rb
@@ -9,8 +9,8 @@ module Arel
Nodes::In.new self, other
end
- def count
- Nodes::Count.new [self]
+ def count distinct = false
+ Nodes::Count.new [self], distinct
end
end