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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb
index e330e49e71..77853ea854 100644
--- a/lib/arel/select_manager.rb
+++ b/lib/arel/select_manager.rb
@@ -135,7 +135,7 @@ module Arel
end
def union operation, other = nil
- if operation.is_a? Symbol
+ if other
node_class = Nodes.const_get("Union#{operation.to_s.capitalize}")
else
other = operation