aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/relations/array.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/relations/array.rb')
-rw-r--r--lib/arel/relations/array.rb19
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/arel/relations/array.rb b/lib/arel/relations/array.rb
deleted file mode 100644
index dac65abbc2..0000000000
--- a/lib/arel/relations/array.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-module Arel
- class Array < Relation
- include Recursion::BaseCase
-
- def initialize(array, attribute_names)
- @array, @attribute_names = array, attribute_names
- end
-
- def attributes
- @attributes ||= @attribute_names.collect do |name|
- Attribute.new(self, name.to_sym)
- end
- end
-
- def call(connection = nil)
- @array.collect { |row| attributes.zip(row).to_hash }
- end
- end
-end \ No newline at end of file