aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2011-01-22 14:11:01 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-22 14:11:01 -0800
commit5bc709be9eed03022927cbe8ab0708fcfa971f2b (patch)
treee59039f5aeb60f9611a24afa763b3e2625331129 /lib
parentf574327f19f717a66b327ebffd8ef0fdb3967fdc (diff)
downloadrails-5bc709be9eed03022927cbe8ab0708fcfa971f2b.tar.gz
rails-5bc709be9eed03022927cbe8ab0708fcfa971f2b.tar.bz2
rails-5bc709be9eed03022927cbe8ab0708fcfa971f2b.zip
no need for is_a? check
Diffstat (limited to 'lib')
-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