aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/operations/project.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/operations/project.rb')
-rw-r--r--lib/arel/relations/operations/project.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/arel/relations/operations/project.rb b/lib/arel/relations/operations/project.rb
deleted file mode 100644
index 5507ea3163..0000000000
--- a/lib/arel/relations/operations/project.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-module Arel
- class Project < Compound
- attributes :relation, :projections
- deriving :==
-
- def initialize(relation, *projections, &block)
- @relation = relation
- @projections = (projections + (block_given?? [yield(relation)] : [])).collect { |p| p.bind(relation) }
- end
-
- def attributes
- @attributes ||= projections.collect { |p| p.bind(self) }
- end
-
- def externalizable?
- attributes.any?(&:aggregation?) or relation.externalizable?
- end
- end
-end