aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel
diff options
context:
space:
mode:
authorArthur Taylor <arthur@aupeo.com>2011-04-15 16:34:18 +0200
committerArthur Taylor <arthur@aupeo.com>2011-04-15 16:34:18 +0200
commit660f706491ac012cb133554cffeaa6b9ae6046e9 (patch)
treeed6e6c9d4b1b2c58f5ea310397edfe7efd968fe3 /lib/arel
parentfc353baa803ba5ab2c11d71adcec358ea5c75f44 (diff)
downloadrails-660f706491ac012cb133554cffeaa6b9ae6046e9.tar.gz
rails-660f706491ac012cb133554cffeaa6b9ae6046e9.tar.bz2
rails-660f706491ac012cb133554cffeaa6b9ae6046e9.zip
Fixed deep copy bug in SelectManager clone
Diffstat (limited to 'lib/arel')
-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