diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-22 14:11:01 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-22 14:11:01 -0800 |
commit | 5bc709be9eed03022927cbe8ab0708fcfa971f2b (patch) | |
tree | e59039f5aeb60f9611a24afa763b3e2625331129 /lib/arel | |
parent | f574327f19f717a66b327ebffd8ef0fdb3967fdc (diff) | |
download | rails-5bc709be9eed03022927cbe8ab0708fcfa971f2b.tar.gz rails-5bc709be9eed03022927cbe8ab0708fcfa971f2b.tar.bz2 rails-5bc709be9eed03022927cbe8ab0708fcfa971f2b.zip |
no need for is_a? check
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/select_manager.rb | 2 |
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 |