From 5bc709be9eed03022927cbe8ab0708fcfa971f2b Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Sat, 22 Jan 2011 14:11:01 -0800 Subject: no need for is_a? check --- lib/arel/select_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3