aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/nodes
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/nodes')
-rw-r--r--lib/arel/nodes/select_core.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/nodes/select_core.rb b/lib/arel/nodes/select_core.rb
index bd85dad24a..42e590ce36 100644
--- a/lib/arel/nodes/select_core.rb
+++ b/lib/arel/nodes/select_core.rb
@@ -5,7 +5,7 @@ module Arel
attr_accessor :having
def initialize
- @froms = []
+ @froms = nil
@projections = []
@wheres = []
@groups = []
@@ -14,7 +14,7 @@ module Arel
def initialize_copy other
super
- @froms = @froms.clone
+ @froms = @froms.clone if @froms
@projections = @projections.clone
@wheres = @wheres.clone
@group = @groups.clone