module AssociateJsonb::ArelExtensions::Visitors::Visitor

Public Instance Methods

dispatch_cache() click to toggle source
# File lib/associate_jsonb/arel_extensions/visitors/visitor.rb, line 8
def dispatch_cache
  @dispatch_cache ||= Hash.new do |hash, klass|
    hash[klass] =
      "visit_#{(klass.name || '').
        sub("AssociateJsonb::ArelNodes::SqlCasted", "Arel::Nodes::").
        gsub('::', '_')}"
  end
end