aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/selection.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/selection.rb')
-rw-r--r--lib/arel/relations/selection.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/arel/relations/selection.rb b/lib/arel/relations/selection.rb
deleted file mode 100644
index fc4e94621a..0000000000
--- a/lib/arel/relations/selection.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-module Arel
- class Selection < Compound
- attr_reader :predicate
-
- def initialize(relation, *predicates)
- predicate = predicates.shift
- @relation = predicates.empty?? relation : Selection.new(relation, *predicates)
- @predicate = predicate.bind(@relation)
- end
-
- def selects
- @selects ||= (relation.selects + [predicate]).collect { |p| p.bind(self) }
- end
-
- def ==(other)
- Selection === other and
- relation == other.relation and
- predicate == other.predicate
- end
- end
-end \ No newline at end of file