diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/arel/visitors/visitor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/visitors/visitor.rb b/lib/arel/visitors/visitor.rb index b0d16ffe4e..8cea42028e 100644 --- a/lib/arel/visitors/visitor.rb +++ b/lib/arel/visitors/visitor.rb @@ -8,7 +8,7 @@ module Arel private DISPATCH = Hash.new do |hash, klass| - hash[klass] = "visit_#{klass.name.gsub('::', '_')}" + hash[klass] = "visit_#{(klass.name || '').gsub('::', '_')}" end def visit object |