aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes
diff options
context:
space:
mode:
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