aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-04-21 15:46:24 -0500
committerAaron Patterson <aaron.patterson@gmail.com>2011-04-21 15:46:24 -0500
commit0b9af9762a5f3431f83a9bba6919fef9346e310a (patch)
tree7731a00a00ff0588835fe2e7f7164be0a4264116 /lib/arel/nodes
parentcae83ce964b9919b890bb7fa6f920a536e6b5425 (diff)
downloadrails-0b9af9762a5f3431f83a9bba6919fef9346e310a.tar.gz
rails-0b9af9762a5f3431f83a9bba6919fef9346e310a.tar.bz2
rails-0b9af9762a5f3431f83a9bba6919fef9346e310a.zip
adding Distinct ON node
Diffstat (limited to 'lib/arel/nodes')
-rw-r--r--lib/arel/nodes/terminal.rb6
-rw-r--r--lib/arel/nodes/unary.rb7
2 files changed, 7 insertions, 6 deletions
diff --git a/lib/arel/nodes/terminal.rb b/lib/arel/nodes/terminal.rb
new file mode 100644
index 0000000000..c6b4f4e1e2
--- /dev/null
+++ b/lib/arel/nodes/terminal.rb
@@ -0,0 +1,6 @@
+module Arel
+ module Nodes
+ class Distinct < Arel::Nodes::Node
+ end
+ end
+end
diff --git a/lib/arel/nodes/unary.rb b/lib/arel/nodes/unary.rb
index e6e40e6b13..5c4add4792 100644
--- a/lib/arel/nodes/unary.rb
+++ b/lib/arel/nodes/unary.rb
@@ -20,14 +20,9 @@ module Arel
On
Top
Lock
+ DistinctOn
}.each do |name|
const_set(name, Class.new(Unary))
end
-
- class Distinct < Unary
- def initialize expr = nil
- super
- end
- end
end
end