aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/select_manager.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/select_manager.rb')
-rw-r--r--lib/arel/select_manager.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb
index 048cc5133d..d95a259177 100644
--- a/lib/arel/select_manager.rb
+++ b/lib/arel/select_manager.rb
@@ -9,6 +9,11 @@ module Arel
from table
end
+ def initialize_copy other
+ super
+ @ctx = @ast.cores.last
+ end
+
def limit
@ast.limit && @ast.limit.expr
end