aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes/select_statement.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes/select_statement.rb')
-rw-r--r--lib/arel/nodes/select_statement.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/arel/nodes/select_statement.rb b/lib/arel/nodes/select_statement.rb
index 122f6275fe..50fef776f6 100644
--- a/lib/arel/nodes/select_statement.rb
+++ b/lib/arel/nodes/select_statement.rb
@@ -8,6 +8,11 @@ module Arel
@cores = cores
@limit = nil
end
+
+ def initialize_copy other
+ super
+ @cores = @cores.map { |o| o.clone }
+ end
end
end
end