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:
parent
f574327f19
commit
5bc709be9e
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue