diff options
-rw-r--r-- | lib/arel/visitors/visitor.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/arel/visitors/visitor.rb b/lib/arel/visitors/visitor.rb index 2317d0c95f..146ae216f6 100644 --- a/lib/arel/visitors/visitor.rb +++ b/lib/arel/visitors/visitor.rb @@ -3,8 +3,7 @@ module Arel class Visitor def initialize @dispatch = Hash.new do |hash, class_name| - raise if class_name == 'Arel::Nodes::Union' - hash[class_name] = "visit_#{(class_name || '').gsub('::', '_')}" + hash[class_name] = "visit_#{(class_name || '').gsub('::', '_')}" end # pre-populate cache. FIXME: this should be passed in to each |