1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

no need for is_a? check

This commit is contained in:
Aaron Patterson 2011-01-22 14:11:01 -08:00
parent f574327f19
commit 5bc709be9e

View file

@ -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