From 0b9af9762a5f3431f83a9bba6919fef9346e310a Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 21 Apr 2011 15:46:24 -0500 Subject: adding Distinct ON node --- lib/arel/nodes/terminal.rb | 6 ++++++ lib/arel/nodes/unary.rb | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 lib/arel/nodes/terminal.rb (limited to 'lib/arel/nodes') 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 -- cgit v1.2.3